Browse Source

Remove redundant servicePath variable from SettingsPersistence

master
Rick Watson 5 years ago
parent
commit
a98f1d4504
  1. 2
      src/SettingsPersistence.h
  2. 2
      src/SettingsService.h

2
src/SettingsPersistence.h

@ -88,7 +88,7 @@ protected:
public:
SettingsPersistence(FS* fs, char const* servicePath, char const* filePath):
SettingsPersistence(FS* fs, char const* filePath):
_fs(fs), _filePath(filePath) {}
virtual ~SettingsPersistence() {}

2
src/SettingsService.h

@ -60,7 +60,7 @@ private:
public:
SettingsService(AsyncWebServer* server, FS* fs, char const* servicePath, char const* filePath):
SettingsPersistence(fs, servicePath, filePath), _server(server) {
SettingsPersistence(fs, filePath), _server(server) {
// configure fetch config handler
_server->on(servicePath, HTTP_GET, std::bind(&SettingsService::fetchConfig, this, std::placeholders::_1));

Loading…
Cancel
Save