From 468cda5d57dad9d44f20c8e2f098ad248eb9a5e9 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Mon, 6 Jun 2022 23:56:26 +0200 Subject: [PATCH] Update TaskOTA.cpp --- src/TaskOTA.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/TaskOTA.cpp b/src/TaskOTA.cpp index 89cbf7f..08f90fa 100644 --- a/src/TaskOTA.cpp +++ b/src/TaskOTA.cpp @@ -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) {