pimoroni / pimoroni-pico

Libraries and examples to support Pimoroni Pico add-ons in C++ and MicroPython.
https://shop.pimoroni.com/collections/pico
MIT License
1.29k stars 492 forks source link

inky73: Add busy wait timeout. #920

Closed Gadgetoid closed 5 months ago

Gadgetoid commented 6 months ago

Add a timeout to fix Inky 7.3" hanging on batteries.

Basically assumes the update has finished if it takes > 45s, and allows a subsequent attempt rather than hanging indefinitely.

Raised, tested and fixed by w3stbam: https://github.com/pimoroni/pimoroni-pico/pull/900

Rewritten as mentioned in the PR.

Replaces #900