Update TaskOTA.cpp

pull/198/head
Peter Buchegger 2022-06-06 23:56:26 +02:00 zatwierdzone przez GitHub
rodzic 7d91f0ec8c
commit 468cda5d57
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -18,14 +18,11 @@ bool OTATask::setup(System &system) {
} else { // U_SPIFFS
type = "filesystem";
}
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "Start updating %s", type.c_str());
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "Start updating %s. please wait, this prozess is taking some time!", type.c_str());
})
.onEnd([&]() {
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "OTA End");
})
.onProgress([&](unsigned int progress, unsigned int total) {
system.getLogger().log(logging::LoggerLevel::LOGGER_LEVEL_INFO, getName(), "Progress: %f", (progress / (total / 100)));
})
.onError([&](ota_error_t error) {
String error_str;
if (error == OTA_AUTH_ERROR) {