Fixed issue #30: UI screens for selecting voice/bank are inconsistent

pull/32/head
Holger Wirtz 4 years ago
parent 617a1095c3
commit 620577833c
  1. 28
      UI.hpp

@ -4731,12 +4731,14 @@ void UI_func_sysex_receive_bank(uint8_t param)
lcd.setCursor(0, 0);
lcd.print(F("MIDI Recv Bank"));
lcd.setCursor(0, 1);
lcd.print(F("[ ]"));
lcd.setCursor(3, 1);
lcd.print(F("["));
lcd.setCursor(15, 1);
lcd.print(F("]"));
if (!get_bank_name(configuration.performance.bank[selected_instance_id], receive_bank_filename, sizeof(receive_bank_filename)))
strcpy(receive_bank_filename, "*ERROR*");
lcd.show(1, 1, 2, bank_number);
lcd.show(1, 5, 10, receive_bank_filename);
lcd.show(1, 0, 2, bank_number);
lcd.show(1, 4, 10, receive_bank_filename);
}
if (LCDML.FUNC_loop()) // ****** LOOP *********
@ -4751,7 +4753,7 @@ void UI_func_sysex_receive_bank(uint8_t param)
bank_number = constrain(bank_number + ENCODER[ENC_R].speed(), 0, MAX_BANKS - 1);
if (!get_bank_name(bank_number, receive_bank_filename, sizeof(receive_bank_filename)))
strcpy(receive_bank_filename, "*ERROR*");
lcd.show(1, 1, 2, bank_number);
lcd.show(1, 0, 2, bank_number);
lcd.show(1, 5, 10, receive_bank_filename);
break;
case 1:
@ -4774,8 +4776,8 @@ void UI_func_sysex_receive_bank(uint8_t param)
bank_number = constrain(bank_number - ENCODER[ENC_R].speed(), 0, MAX_BANKS - 1);
if (!get_bank_name(bank_number, receive_bank_filename, sizeof(receive_bank_filename)))
strcpy(receive_bank_filename, "*ERROR*");
lcd.show(1, 1, 2, bank_number);
lcd.show(1, 5, 10, receive_bank_filename);
lcd.show(1, 0, 2, bank_number);
lcd.show(1, 4, 10, receive_bank_filename);
break;
case 1:
yesno = !yesno;
@ -4893,10 +4895,10 @@ void UI_func_sysex_send_bank(uint8_t param)
lcd.print(F("MIDI Send Bank"));
if (!get_bank_name(configuration.performance.bank[selected_instance_id], bank_name, sizeof(bank_name)))
strncpy(bank_name, "*ERROR*", sizeof(bank_name));
lcd.show(1, 0, 1, "[");
lcd.show(1, 3, 1, "]");
lcd.show(1, 1, 2, configuration.performance.bank[selected_instance_id]);
lcd.show(1, 5, 10, bank_name);
lcd.show(1, 3, 1, "[");
lcd.show(1, 15, 1, "]");
lcd.show(1, 0, 2, configuration.performance.bank[selected_instance_id]);
lcd.show(1, 4, 10, bank_name);
}
if (LCDML.FUNC_loop()) // ****** LOOP *********
@ -4914,8 +4916,8 @@ void UI_func_sysex_send_bank(uint8_t param)
}
if (!get_bank_name(bank_number, bank_name, sizeof(bank_name)))
strcpy(bank_name, "*ERROR*");
lcd.show(1, 1, 2, bank_number);
lcd.show(1, 5, 10, bank_name);
lcd.show(1, 0, 2, bank_number);
lcd.show(1, 4, 10, bank_name);
}
else if (LCDML.BT_checkEnter() && encoderDir[ENC_R].ButtonShort())
{

Loading…
Cancel
Save