🧼 Removes the need to pass reference to fs

This commit is contained in:
Rune Harlyk
2024-11-12 11:54:10 +01:00
parent 316b1a52cb
commit 426b4a1332
8 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ class ServoController : public StatefulService<ServoSettings> {
ServoController(Peripherals *peripherals)
: _peripherals(peripherals),
endpoint(ServoSettings::read, ServoSettings::update, this),
_persistence(ServoSettings::read, ServoSettings::update, this, &ESPFS, SERVO_SETTINGS_FILE) {}
_persistence(ServoSettings::read, ServoSettings::update, this, SERVO_SETTINGS_FILE) {}
void begin() {
socket.onEvent(EVENT_SERVO_CONFIGURATION_SETTINGS,