mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
Speed up OTA download when using OLED display
This commit is contained in:
parent
f15c2559b4
commit
e909aab8f2
@ -31,7 +31,9 @@ void begin_OTA() {
|
||||
DBG("\nEnd");
|
||||
});
|
||||
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
|
||||
#ifndef USE_OLED // Displaying on OLED slows down the download process
|
||||
DBG("Progress: " + String(progress / (total / 100)) + "%");
|
||||
#endif
|
||||
});
|
||||
ArduinoOTA.onError([](ota_error_t error) {
|
||||
DBG("Error[" + String(error) + "]");
|
||||
|
Loading…
Reference in New Issue
Block a user