|
|
|
@ -2911,19 +2911,34 @@ void UI_func_eeprom_reset(uint8_t param) |
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
|
|
|
|
|
|
// setup function
|
|
|
|
|
lcd.print("EEPROM reset?"); |
|
|
|
|
lcd.print("Reset EEPROM?"); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("[NO ]"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_loop()) // ****** LOOP *********
|
|
|
|
|
{ |
|
|
|
|
if ((LCDML.BT_checkDown() && encoderDir[ENC_R].Down()) || (LCDML.BT_checkUp() && encoderDir[ENC_R].Up())) |
|
|
|
|
if ((LCDML.BT_checkDown() && encoderDir[ENC_R].Down()) || (LCDML.BT_checkUp() && encoderDir[ENC_R].Up()) || (LCDML.BT_checkEnter() && encoderDir[ENC_R].ButtonShort())) |
|
|
|
|
{ |
|
|
|
|
if (LCDML.BT_checkDown()) |
|
|
|
|
yesno = true; |
|
|
|
|
else if (LCDML.BT_checkUp()) |
|
|
|
|
yesno = false; |
|
|
|
|
else if (LCDML.BT_checkEnter()) |
|
|
|
|
{ |
|
|
|
|
if (yesno == true) |
|
|
|
|
{ |
|
|
|
|
LCDML.DISP_clear(); |
|
|
|
|
lcd.print("Firmware reset:"); |
|
|
|
|
|
|
|
|
|
initial_values_from_eeprom(yesno); |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Done."); |
|
|
|
|
delay(500); |
|
|
|
|
_softRestart(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (yesno == true) |
|
|
|
|
{ |
|
|
|
@ -2940,18 +2955,10 @@ void UI_func_eeprom_reset(uint8_t param) |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
|
{ |
|
|
|
|
if (yesno == true) |
|
|
|
|
{ |
|
|
|
|
LCDML.DISP_clear(); |
|
|
|
|
lcd.print("Firmware reset:"); |
|
|
|
|
|
|
|
|
|
initial_values_from_eeprom(yesno); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Canceled "); |
|
|
|
|
delay(500); |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Done."); |
|
|
|
|
delay(500); |
|
|
|
|
_softRestart(); |
|
|
|
|
} |
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -3705,7 +3712,7 @@ void UI_func_save_fx(uint8_t param) |
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Save FX SD")); |
|
|
|
|
lcd.print(F("Save FX")); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.performance.fx_number == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|