diff --git a/display.c b/display.c --- a/display.c +++ b/display.c @@ -374,7 +374,7 @@ void display_process(therm_settings_t* s // Button handler if(SW_BTN_PRESSED) { - save_settings(); + save_settings(&set); status->state = STATE_IDLE; } else { @@ -401,7 +401,7 @@ void display_process(therm_settings_t* s // Button handler if(SW_BTN_PRESSED) { - save_setpoints(); // TODO: Check for mod + save_setpoints(&set); // TODO: Check for mod status->state = STATE_IDLE; } else { @@ -428,7 +428,7 @@ void display_process(therm_settings_t* s // Button handler if(SW_BTN_PRESSED) { - save_setpoints(); // TODO: Check for mod + save_setpoints(&set); // TODO: Check for mod status->state = STATE_IDLE; } else { @@ -454,7 +454,7 @@ void display_process(therm_settings_t* s // Button handler if(SW_BTN_PRESSED) { status->state = STATE_IDLE; - save_setpoints(); // TODO: Check for mod + save_setpoints(&set); // TODO: Check for mod } else { user_input(&set->setpoint_steam); @@ -481,7 +481,7 @@ void display_process(therm_settings_t* s // Button handler if(SW_BTN_PRESSED) { status->state = STATE_IDLE; - save_setpoints(); // TODO: Check for mod + save_setpoints(&set); // TODO: Check for mod } else { user_input(&set->setpoint_steam);