Skip to content

pressing Ctrl-C breaks time.sleep() until reboot #2865

@xobs

Description

@xobs

Description

Pressing Ctrl-C to interrupt time.sleep() will cause time.sleep() to instantaneously return on NRF until the board is reset.

Steps to reproduce

In the REPL, run:

import time
time.sleep(100)

While it's sleeping, press Ctrl-C. The REPL will come back. Then run:

time.sleep(100)

The REPL will return instantly.

Workaround

Performing a soft- or hard-reboot re-initializes the sleep timer and gets it working again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions