Skip to content

busio.UART timeout is not interruptable by KeyboardInterrupt #1374

@dhalbert

Description

@dhalbert

A KeyboardInterrupt during a UART timeout will not interrupt the timeout. This bug has been present since 2.x or before.

The UART code does call MICROPY_VM_HOOK_LOOP but doesn't check for a KeyboardInterrupt.

The I2CSlave code has some examples of checking for an interrupt using mp_hal_is_interrupted(). There may be other places we should think about including that check.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions