more tasks in task manager

This commit is contained in:
2021-12-18 20:08:40 +01:00
parent 444df158e9
commit b5c6823a80
2 changed files with 7 additions and 19 deletions

View File

@ -53,7 +53,6 @@ using namespace std::chrono_literals;
#include "udpcloud.h"
#endif
#include "wifi_bobbycar.h"
#include "time_bobbycar.h"
#ifdef FEATURE_LEDSTRIP
#include "ledstrip.h"
#endif
@ -87,9 +86,6 @@ std::optional<espchrono::millis_clock::time_point> lastBleUpdate;
std::optional<espchrono::millis_clock::time_point> lastCloudCollect;
std::optional<espchrono::millis_clock::time_point> lastCloudSend;
#endif
#ifdef FEATURE_NTP
std::optional<espchrono::millis_clock::time_point> lastNtpUpdate;
#endif
#ifdef FEATURE_LEDSTRIP
std::optional<espchrono::millis_clock::time_point> lastLedstripUpdate;
#endif
@ -219,11 +215,6 @@ extern "C" void app_main()
initCloud();
#endif
#ifdef FEATURE_NTP
bootLabel.redraw("time");
initTime();
#endif
bootLabel.redraw("switchScreen");
#if defined(FEATURE_DPAD_5WIRESW) && defined(DPAD_5WIRESW_DEBUG)
@ -366,15 +357,6 @@ extern "C" void app_main()
}
#endif
#ifdef FEATURE_NTP
if (!lastNtpUpdate || now - *lastNtpUpdate >= 100ms)
{
updateTime();
lastNtpUpdate = now;
}
#endif
#ifdef FEATURE_WEBSERVER
handleWebserver();
#endif