whaleygeek / bitio

A micro:bit I/O device library for Python
Other
92 stars 31 forks source link

Pressing reset button accidentally causes problems #6

Open whaleygeek opened 7 years ago

whaleygeek commented 7 years ago

Not a big issue, but if you have the micro:bit on a table and press one of the front buttons, it sometimes leans the micro:bit and the reset button is pressed.

This causes the micro:bit to reboot and it is no longer at the raw REPL, and the next command then fails to do anything due to the wrong response.

Might be worth looking to see if I can improve the recovery of this with a response state machine, so that if it detects a reboot or unexpected state, it tries to re-enter the raw REPL to recover.

whaleygeek commented 7 years ago

I'm not that worried by this, but it looks like something I could easily fix before final publication.