Fixed accidental loop in writing track to EEPROM

This commit is contained in:
2026-03-27 14:20:10 +01:00
parent 444aba79b2
commit 5ae6149447

View File

@@ -61,6 +61,11 @@ int config::read_cfg() {
int config::write_cfg() {
EEPROM.put(0, _config);
config_global_write(_config);
#ifdef INFO
if (_logger != nullptr) {
_logger->info("Config updated and saved to EEPROM");
}
#endif
return 0;
}
@@ -155,7 +160,9 @@ int config::handle_active_task(unsigned long timeout_ms) {
return 0;
case TASK_CONFIG_WRITE_TEMP_TRACK:
return this->write_track_from_temp();
int res = this->write_track_from_temp();
this->task_complete();
return res;
default:
break;