🎐 Makes analytics a part of system service

This commit is contained in:
Rune Harlyk
2024-11-14 11:18:29 +01:00
parent f3d2fec0e9
commit 35e1cc678a
8 changed files with 20 additions and 47 deletions
+1 -4
View File
@@ -184,7 +184,6 @@ void Spot::setupMDNS() {
void Spot::startServices() {
_apService.begin();
#if FT_ENABLED(USE_UPLOAD_FIRMWARE)
_uploadFirmwareService.begin();
#endif
@@ -209,9 +208,7 @@ void IRAM_ATTR Spot::loop() {
while (1) {
_wifiService.loop();
_apService.loop();
#if FT_ENABLED(USE_ANALYTICS)
_analyticsService.loop();
#endif
EXECUTE_EVERY_N_MS(2000, system_service::emitMetrics());
delay(20);
}
}