Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PICO and lightsleep causes rshell to hang #222

Open
davefes opened this issue Oct 4, 2023 · 1 comment
Open

PICO and lightsleep causes rshell to hang #222

davefes opened this issue Oct 4, 2023 · 1 comment

Comments

@davefes
Copy link

davefes commented Oct 4, 2023

As per discussion:
https://github.com/orgs/micropython/discussions/12573
rshell appears to hang after 5-20 loops of the following program:

from time import sleep
from machine import lightsleep

while True:
    print ('waiting 2 seconds for a CTRL-C')
    sleep(2)
    print ('going to lightsleep for 2 seconds')
    sleep(0.1)
    lightsleep(2000)
    print ('woke-up again')
    sleep(0.1)

lightsleep messing with the USB has been suggested as a possible cause.

@kenrap
Copy link

kenrap commented Jul 7, 2024

Assuming lightsleep is I/O-driven using USB, 70288d8 might solve your problem now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants