diff options
Diffstat (limited to 'control')
-rw-r--r-- | control/zone.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/control/zone.cpp b/control/zone.cpp index d4c7a3c..0278de8 100644 --- a/control/zone.cpp +++ b/control/zone.cpp @@ -674,7 +674,7 @@ void Zone::saveCurrentMode() void Zone::restoreCurrentMode() { - std::string current = "Default"; + auto current = ThermalObject::current(); fs::path path{CONTROL_PERSIST_ROOT_PATH}; path /= std::to_string(_zoneNum); path /= "CurrentMode"; @@ -693,7 +693,7 @@ void Zone::restoreCurrentMode() { log<level::ERR>(e.what()); fs::remove(path); - current = "Default"; + current = ThermalObject::current(); } this->current(current); |