🔦 Reduces flash size by making analytic synchronous

This commit is contained in:
Rune Harlyk
2024-05-02 19:20:58 +02:00
committed by Rune Harlyk
parent 8f87a1304b
commit ae1cb70710
2 changed files with 52 additions and 48 deletions
+4 -1
View File
@@ -183,12 +183,15 @@ void ESP32SvelteKit::startServices() {
_fileExplorer.begin();
}
void ESP32SvelteKit::_loop() {
void IRAM_ATTR ESP32SvelteKit::_loop() {
while (1) {
_wifiSettingsService.loop();
_apSettingsService.loop();
#if FT_ENABLED(FT_MQTT)
_mqttSettingsService.loop();
#endif
#if FT_ENABLED(FT_ANALYTICS)
_analyticsService.loop();
#endif
vTaskDelay(20 / portTICK_PERIOD_MS);
}