ntoll / uflash

A module and command to easily flash Python onto the BBC's micro:bit device.
http://micropython.org/
MIT License
101 stars 27 forks source link

Make save_hex() blocking until micro:bit file transfer finishes. #69

Closed carlosperate closed 3 years ago

carlosperate commented 3 years ago

This should block save_hex() until the hex file has been fully transfer to the micro:bit in all operating systems.

It would resolve this issue in Mu: https://github.com/mu-editor/mu/issues/1181 And will help simplify the mu.modes.microbit.flash() method as well, not having to have a special case for macOS/Linux.

carlosperate commented 3 years ago

I've tested this in macOS Mojave, Windows 10 VM and Ubuntu Bionic VM, but it'd be good to test it also in other systems. I've upsed DAPLinnk 0234 and 0253 (oldest and newest) for the testing as well.