diff --git a/display.c b/display.c --- a/display.c +++ b/display.c @@ -337,7 +337,7 @@ void display_process(therm_settings_t* s // Button handler if(SW_BTN_PRESSED) { - flash_save(&set); + flash_save(set); status->state = STATE_IDLE; } else { @@ -487,7 +487,8 @@ void display_process(therm_settings_t* s case RESET_RESET: { status->state = STATE_RESET; - //flash_erase(); + flash_load_defaults(set); + flash_save(set); NVIC_SystemReset(); } break; case RESET_EXIT: