mirror of
https://github.com/esp8266/Arduino.git
synced 2025-09-11 05:52:31 +03:00
Refactoring to PolledTimeout or optimistic_yield on the grounds that these are not wait loops on slow input.
This commit is contained in:
@@ -281,7 +281,7 @@ uint8_t ESP8266AVRISP::write_flash_pages(int length) {
|
||||
int x = 0;
|
||||
int page = addr_page(here);
|
||||
while (x < length) {
|
||||
yield();
|
||||
optimistic_yield(10000);
|
||||
if (page != addr_page(here)) {
|
||||
commit(page);
|
||||
page = addr_page(here);
|
||||
|
Reference in New Issue
Block a user