🧼 Removes server dependencies from service

This commit is contained in:
Rune Harlyk
2024-11-12 11:28:01 +01:00
parent 9ca42dbc69
commit 1b7ae688a6
3 changed files with 5 additions and 19 deletions
+2 -11
View File
@@ -17,18 +17,12 @@
ESP32SvelteKit::ESP32SvelteKit(PsychicHttpServer *server)
:
#if FT_ENABLED(USE_DOWNLOAD_FIRMWARE)
_downloadFirmwareService(server),
#endif
#if FT_ENABLED(USE_SLEEP)
_sleepService(server),
#endif
#if FT_ENABLED(USE_BATTERY)
_batteryService(&_peripherals),
#endif
_servoController(server, &ESPFS, &_peripherals),
_servoController(&_peripherals),
#if FT_ENABLED(USE_MOTION)
_motionService(_server, &_servoController),
_motionService(&_servoController),
#endif
_server(server) {
}
@@ -209,9 +203,6 @@ void ESP32SvelteKit::startServices() {
#if FT_ENABLED(USE_NTP)
_ntpService.begin();
#endif
#if FT_ENABLED(USE_SLEEP)
_sleepService.begin();
#endif
#if FT_ENABLED(USE_BATTERY)
_batteryService.begin();
#endif