1
0
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:
Dirk O. Kaar
2019-12-02 16:07:36 +01:00
parent 117f163099
commit f382fc9d77
5 changed files with 19 additions and 21 deletions

View File

@@ -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);