Speed up OTA download when using OLED display

This commit is contained in:
Jeff Lehman 2023-03-08 16:18:14 -06:00
parent f15c2559b4
commit e909aab8f2

View File

@ -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) + "]");