8000 mp_sched_schedule's scheduled callbacks don't run on empty REPL lines · Issue #3273 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
mp_sched_schedule's scheduled callbacks don't run on empty REPL lines #3273
Closed
@pfalcon

Description

@pfalcon

Ok, so using mp_sched_schedule() with interactive REPL is problematic - scheduled stuff won't run until REPL executes something. That's understood. However, it would be nice if empty lines entered actually caused them to be executed. Otherwise, it requires really dirty workaround of typing random expressions to get it going, like me typing 1 below:

>>> conn.gatt_read(3, print)
>>> read_cb: 0
4d 49 

>>> 1
b'MI'
1
>>> 1
1
>>> conn.gatt_read(5, print)
>>> read_cb: 0
00 00 

>>> 1
b'\x00\x00'
1
>>> conn.gatt_read(7, print)
>>> read_cb: 0
00 

>>> 
>>> 1
b'\x00'
1
>>> conn.gatt_read(9, print)
>>> read_cb: 0
06 00 50 00 00 00 f4 01 

>>> 1
b'\x06\x00P\x00\x00\x00\xf4\x01'
1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0