🐹 Renames member
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user