Minor tweaks for ESP8266

- update was restarting device on some occasions
- a bit of throttling in UI
This commit is contained in:
Blaz Kristan
2024-06-14 22:12:09 +02:00
parent f4475b9d2a
commit ed0e73803f
5 changed files with 7 additions and 7 deletions

View File

@@ -215,7 +215,7 @@ bool requestJSONBufferLock(uint8_t module)
}
unsigned long now = millis();
while (jsonBufferLock && millis()-now < 100) delay(1); // wait for fraction for buffer lock
while (jsonBufferLock && millis()-now < 250) delay(1); // wait for fraction for buffer lock
if (jsonBufferLock) {
DEBUG_PRINT(F("ERROR: Locking JSON buffer failed! (still locked by "));