|
|
|
@ -3204,7 +3204,7 @@ void UI_func_eeprom_reset(uint8_t param) |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Done."); |
|
|
|
|
delay(500); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
_softRestart(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -3226,7 +3226,7 @@ void UI_func_eeprom_reset(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Canceled "); |
|
|
|
|
delay(500); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
|
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
|
} |
|
|
|
@ -3532,7 +3532,7 @@ void UI_func_load_performance(uint8_t param) |
|
|
|
|
|
|
|
|
|
lcd.print("Done. "); |
|
|
|
|
} |
|
|
|
|
delay(500); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
|
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
} |
|
|
|
@ -3548,9 +3548,8 @@ void UI_func_load_performance(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
if (mode < 0xff) |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Canceled "); |
|
|
|
|
delay(500); |
|
|
|
|
lcd.show(1, 0, 16, "Canceled."); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
eeprom_update_performance(); |
|
|
|
@ -3624,13 +3623,20 @@ void UI_func_save_performance(uint8_t param) |
|
|
|
|
sprintf(tmp, "/%s/%s%d.syx", PERFORMANCE_CONFIG_PATH, PERFORMANCE_CONFIG_NAME, configuration.sys.performance_number); |
|
|
|
|
SD.remove(tmp); |
|
|
|
|
} |
|
|
|
|
save_sd_performance(configuration.performance.fx_number); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Done. "); |
|
|
|
|
delay(500); |
|
|
|
|
save_sd_performance(configuration.sys.performance_number); |
|
|
|
|
lcd.show(1, 0, 16, "Done."); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
} |
|
|
|
|
else if (overwrite == true && yesno == false) |
|
|
|
|
{ |
|
|
|
|
char tmp[17]; |
|
|
|
|
|
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
mode = 0; |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
sprintf(tmp, "[%2d] ", configuration.sys.performance_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3663,9 +3669,8 @@ void UI_func_save_performance(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
if (mode < 0xff) |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Canceled "); |
|
|
|
|
delay(500); |
|
|
|
|
lcd.show(1, 0, 16, "Canceled."); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EEPROM.update(EEPROM_START_ADDRESS + offsetof(sys_s, performance_number), configuration.sys.performance_number); |
|
|
|
@ -3693,7 +3698,7 @@ void UI_func_load_voiceconfig(uint8_t param) |
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Load Voice Cfg")); |
|
|
|
|
lcd.print(F("Load VoiceCfg SD")); |
|
|
|
|
#if NUMDEXED > 1 |
|
|
|
|
mode = 0; |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
@ -3733,7 +3738,7 @@ void UI_func_load_voiceconfig(uint8_t param) |
|
|
|
|
else |
|
|
|
|
lcd.print("Done. "); |
|
|
|
|
|
|
|
|
|
delay(500); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
|
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
} |
|
|
|
@ -3758,9 +3763,8 @@ void UI_func_load_voiceconfig(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
if (mode < 0xff) |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Canceled "); |
|
|
|
|
delay(500); |
|
|
|
|
lcd.show(1, 0, 16, "Canceled."); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
eeprom_update_dexed(instance_id); |
|
|
|
@ -3798,7 +3802,7 @@ void UI_func_save_voiceconfig(uint8_t param) |
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Save Config SD")); |
|
|
|
|
lcd.print(F("Save VoiceCfg SD")); |
|
|
|
|
#if NUMDEXED > 1 |
|
|
|
|
mode = 0; |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
@ -3859,12 +3863,19 @@ void UI_func_save_voiceconfig(uint8_t param) |
|
|
|
|
SD.remove(tmp); |
|
|
|
|
} |
|
|
|
|
save_sd_voiceconfig(configuration.performance.voiceconfig_number[instance_id], instance_id); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Done. "); |
|
|
|
|
delay(500); |
|
|
|
|
lcd.show(1, 0, 16, "Done."); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
} |
|
|
|
|
else if (overwrite == true && yesno == false) |
|
|
|
|
{ |
|
|
|
|
char tmp[17]; |
|
|
|
|
|
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
mode = 1; |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
sprintf(tmp, "[%2d] ", configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3903,9 +3914,8 @@ void UI_func_save_voiceconfig(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
if (mode < 0xff) |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Canceled "); |
|
|
|
|
delay(500); |
|
|
|
|
lcd.show(1, 0, 16, "Canceled."); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if NUM_DEXED > 1 |
|
|
|
@ -3934,7 +3944,7 @@ void UI_func_load_fx(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Load FX SD")); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
sprintf(tmp, "[%d]", configuration.performance.fx_number); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.performance.fx_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3960,7 +3970,7 @@ void UI_func_load_fx(uint8_t param) |
|
|
|
|
else |
|
|
|
|
lcd.print("Done. "); |
|
|
|
|
|
|
|
|
|
delay(500); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
|
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
} |
|
|
|
@ -3976,9 +3986,8 @@ void UI_func_load_fx(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
if (mode < 0xff) |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Canceled "); |
|
|
|
|
delay(500); |
|
|
|
|
lcd.show(1, 0, 16, "Canceled."); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
eeprom_update_fx(); |
|
|
|
@ -4007,7 +4016,7 @@ void UI_func_save_fx(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Save FX")); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
sprintf(tmp, "[%d]", configuration.performance.fx_number); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.performance.fx_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
|
|
|
|
|
sprintf(tmp, "/%s/%s%d.syx", FX_CONFIG_PATH, FX_CONFIG_NAME, configuration.performance.fx_number); |
|
|
|
@ -4055,12 +4064,20 @@ void UI_func_save_fx(uint8_t param) |
|
|
|
|
SD.remove(tmp); |
|
|
|
|
} |
|
|
|
|
save_sd_fx(configuration.performance.fx_number); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Done. "); |
|
|
|
|
delay(500); |
|
|
|
|
|
|
|
|
|
lcd.show(1, 0, 16, "Done."); |
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
} |
|
|
|
|
else if (overwrite == true && yesno == false) |
|
|
|
|
{ |
|
|
|
|
char tmp[17]; |
|
|
|
|
|
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
mode = 0; |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
sprintf(tmp, "[%2d] ", configuration.performance.fx_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -4093,9 +4110,8 @@ void UI_func_save_fx(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
if (mode < 0xff) |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd.print("Canceled "); |
|
|
|
|
delay(500); |
|
|
|
|
lcd.show(1, 0, 16, "Canceled."); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EEPROM.update(EEPROM_START_ADDRESS + offsetof(performance_s, fx_number), configuration.performance.fx_number); |
|
|
|
@ -4220,7 +4236,7 @@ void UI_func_save_voice(uint8_t param) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
lcd.show(1, 0, 16, "Done."); |
|
|
|
|
delay(500); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
|
|
|
|
|
mode = 0xff; |
|
|
|
|
} |
|
|
|
@ -4235,7 +4251,7 @@ void UI_func_save_voice(uint8_t param) |
|
|
|
|
if (mode < 0xff) |
|
|
|
|
{ |
|
|
|
|
lcd.show(1, 0, 16, "Canceled."); |
|
|
|
|
delay(500); |
|
|
|
|
delay(MESSAGE_WAIT_TIME); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|