mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 07:23:07 +01:00
correct factory reset handling after optimization
This commit is contained in:
@@ -91,7 +91,7 @@ bool GwConfigHandler::updateValue(String name, String value){
|
||||
bool GwConfigHandler::reset(bool save){
|
||||
LOG_DEBUG(GwLog::LOG,"reset config");
|
||||
for (int i=0;i<getNumConfig();i++){
|
||||
configs[i]->updateValue(configs[i]->getDefault(),true);
|
||||
configs[i]->updateValue(configs[i]->getDefault());
|
||||
}
|
||||
if (!save) return true;
|
||||
return saveConfig();
|
||||
|
||||
Reference in New Issue
Block a user