mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Remove old method to disable webserver to save flash
This commit is contained in:
parent
e11843e4a0
commit
79964a0601
3 changed files with 5 additions and 16 deletions
|
@ -86,9 +86,7 @@ void connectivity_loop(void*) {
|
|||
// Init wifi
|
||||
init_WiFi();
|
||||
|
||||
if (webserver_enabled) {
|
||||
init_webserver();
|
||||
}
|
||||
init_webserver();
|
||||
|
||||
if (mdns_enabled) {
|
||||
init_mDNS();
|
||||
|
@ -98,9 +96,7 @@ void connectivity_loop(void*) {
|
|||
START_TIME_MEASUREMENT(wifi);
|
||||
wifi_monitor();
|
||||
|
||||
if (webserver_enabled) {
|
||||
ota_monitor();
|
||||
}
|
||||
ota_monitor();
|
||||
|
||||
END_TIME_MEASUREMENT_MAX(wifi, datalayer.system.status.wifi_task_10s_max_us);
|
||||
|
||||
|
@ -388,11 +384,9 @@ void core_loop(void*) {
|
|||
|
||||
END_TIME_MEASUREMENT_MAX(comm, datalayer.system.status.time_comm_us);
|
||||
|
||||
if (webserver_enabled) {
|
||||
START_TIME_MEASUREMENT(ota);
|
||||
ElegantOTA.loop();
|
||||
END_TIME_MEASUREMENT_MAX(ota, datalayer.system.status.time_ota_us);
|
||||
}
|
||||
START_TIME_MEASUREMENT(ota);
|
||||
ElegantOTA.loop();
|
||||
END_TIME_MEASUREMENT_MAX(ota, datalayer.system.status.time_ota_us);
|
||||
|
||||
// Process
|
||||
currentMillis = millis();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue