Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous change to event_loop() to process all events accumulated in the buffer, rather than one per call, had the inadvertently prevented the OTA update blink. During the OTA update, data comes in fast enough that the buffer never empties, so the first call to event_loop() doesn't finish until the update is done. As a result, the blink loop at the end of handle_update_begin() only runs for one iteration. This commit adds a 20 ms time limit after which event_loop() will stop processing further events and return.
- Loading branch information