🧼 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 -2
View File
@@ -68,8 +68,7 @@ class Peripherals : public StatefulService<PeripheralsConfiguration> {
#if FT_ENABLED(USE_BMP)
_bmp(10085),
#endif
_persistence(PeripheralsConfiguration::read, PeripheralsConfiguration::update, this, &ESPFS,
DEVICE_CONFIG_FILE) {
_persistence(PeripheralsConfiguration::read, PeripheralsConfiguration::update, this, DEVICE_CONFIG_FILE) {
_accessMutex = xSemaphoreCreateMutex();
addUpdateHandler([&](const String &originId) { updatePins(); }, false);
};