🐹 Renames member

This commit is contained in:
Rune Harlyk
2024-11-08 17:24:06 +01:00
parent e77de7dbdb
commit 386f1c627d
8 changed files with 16 additions and 19 deletions
+3 -3
View File
@@ -21,13 +21,13 @@ class ServoController : public StatefulService<ServoSettings> {
: _server(server),
_peripherals(peripherals),
endpoint(ServoSettings::read, ServoSettings::update, this),
_fsPersistence(ServoSettings::read, ServoSettings::update, this, &ESPFS, SERVO_SETTINGS_FILE) {}
_persistence(ServoSettings::read, ServoSettings::update, this, &ESPFS, SERVO_SETTINGS_FILE) {}
void begin() {
socket.onEvent(EVENT_SERVO_CONFIGURATION_SETTINGS,
[&](JsonObject &root, int originId) { servoEvent(root, originId); });
socket.onEvent(EVENT_SERVO_STATE, [&](JsonObject &root, int originId) { stateUpdate(root, originId); });
_fsPersistence.readFromFS();
_persistence.readFromFS();
}
void stateUpdate(JsonObject &root, int originId) {
@@ -85,7 +85,7 @@ class ServoController : public StatefulService<ServoSettings> {
private:
PsychicHttpServer *_server;
Peripherals *_peripherals;
FSPersistence<ServoSettings> _fsPersistence;
FSPersistence<ServoSettings> _persistence;
bool is_active {true};
constexpr static int ServoInterval = 2;