Missing culry brace added.

pull/40/head
Holger Wirtz 4 years ago
parent 53ff9f8d6f
commit d1cf4ecd7f
  1. 51
      UI.hpp

@ -3945,8 +3945,8 @@ void locate_random_non_favorite()
do { do {
configuration.performance.voice[selected_instance_id]=random(32); configuration.performance.voice[selected_instance_id] = random(32);
configuration.performance.bank[selected_instance_id]=random(MAX_BANKS - 1); configuration.performance.bank[selected_instance_id] = random(MAX_BANKS - 1);
favsearcher++; favsearcher++;
@ -4055,7 +4055,7 @@ void UI_func_voice_select(uint8_t param)
#ifdef DISPLAY_LCD_SPI #ifdef DISPLAY_LCD_SPI
change_disp_sd(true); change_disp_sd(true);
#endif #endif
} else //only non-Favs } else //only non-Favs
if (configuration.sys.favorites == 2) if (configuration.sys.favorites == 2)
{ {
locate_previous_non_favorite(); locate_previous_non_favorite();
@ -4069,18 +4069,18 @@ void UI_func_voice_select(uint8_t param)
//break; //break;
} else //random non-Favs } else //random non-Favs
if (configuration.sys.favorites == 3) if (configuration.sys.favorites == 3)
{ {
locate_random_non_favorite(); locate_random_non_favorite();
#ifdef DISPLAY_LCD_SPI #ifdef DISPLAY_LCD_SPI
change_disp_sd(false); change_disp_sd(false);
#endif #endif
load_sd_voice(configuration.performance.bank[selected_instance_id], configuration.performance.voice[selected_instance_id], selected_instance_id); load_sd_voice(configuration.performance.bank[selected_instance_id], configuration.performance.voice[selected_instance_id], selected_instance_id);
#ifdef DISPLAY_LCD_SPI #ifdef DISPLAY_LCD_SPI
change_disp_sd(true); change_disp_sd(true);
#endif #endif
} }
} //end UP } //end UP
else if (LCDML.BT_checkDown()) else if (LCDML.BT_checkDown())
{ {
@ -4094,13 +4094,13 @@ void UI_func_voice_select(uint8_t param)
bank_tmp = constrain(configuration.performance.bank[selected_instance_id] + ENCODER[ENC_R].speed(), 0, MAX_BANKS - 1); bank_tmp = constrain(configuration.performance.bank[selected_instance_id] + ENCODER[ENC_R].speed(), 0, MAX_BANKS - 1);
configuration.performance.bank[selected_instance_id] = bank_tmp; configuration.performance.bank[selected_instance_id] = bank_tmp;
#ifdef DISPLAY_LCD_SPI #ifdef DISPLAY_LCD_SPI
change_disp_sd(false); change_disp_sd(false);
#endif #endif
load_sd_voice(configuration.performance.bank[selected_instance_id], configuration.performance.voice[selected_instance_id], selected_instance_id); load_sd_voice(configuration.performance.bank[selected_instance_id], configuration.performance.voice[selected_instance_id], selected_instance_id);
#ifdef DISPLAY_LCD_SPI #ifdef DISPLAY_LCD_SPI
change_disp_sd(true); change_disp_sd(true);
#endif #endif
break; break;
case MENU_VOICE_SOUND: case MENU_VOICE_SOUND:
memset(g_voice_name[selected_instance_id], 0, VOICE_NAME_LEN); memset(g_voice_name[selected_instance_id], 0, VOICE_NAME_LEN);
voice_tmp = configuration.performance.voice[selected_instance_id] + ENCODER[ENC_R].speed(); voice_tmp = configuration.performance.voice[selected_instance_id] + ENCODER[ENC_R].speed();
@ -4117,13 +4117,14 @@ void UI_func_voice_select(uint8_t param)
configuration.performance.voice[selected_instance_id] = constrain(voice_tmp, 0, MAX_VOICES - 1); configuration.performance.voice[selected_instance_id] = constrain(voice_tmp, 0, MAX_VOICES - 1);
#ifdef DISPLAY_LCD_SPI #ifdef DISPLAY_LCD_SPI
change_disp_sd(false); change_disp_sd(false);
#endif #endif
load_sd_voice(configuration.performance.bank[selected_instance_id], configuration.performance.voice[selected_instance_id], selected_instance_id); load_sd_voice(configuration.performance.bank[selected_instance_id], configuration.performance.voice[selected_instance_id], selected_instance_id);
#ifdef DISPLAY_LCD_SPI #ifdef DISPLAY_LCD_SPI
change_disp_sd(true); change_disp_sd(true);
#endif #endif
break; break;
}
} }
else //only Favs else //only Favs
if (configuration.sys.favorites == 1) if (configuration.sys.favorites == 1)
@ -4153,17 +4154,17 @@ void UI_func_voice_select(uint8_t param)
#endif #endif
//break; //break;
} else //random non-Favs } else //random non-Favs
if (configuration.sys.favorites == 3) if (configuration.sys.favorites == 3)
{ {
locate_random_non_favorite(); locate_random_non_favorite();
#ifdef DISPLAY_LCD_SPI #ifdef DISPLAY_LCD_SPI
change_disp_sd(false); change_disp_sd(false);
#endif #endif
load_sd_voice(configuration.performance.bank[selected_instance_id], configuration.performance.voice[selected_instance_id], selected_instance_id); load_sd_voice(configuration.performance.bank[selected_instance_id], configuration.performance.voice[selected_instance_id], selected_instance_id);
#ifdef DISPLAY_LCD_SPI #ifdef DISPLAY_LCD_SPI
change_disp_sd(true); change_disp_sd(true);
#endif #endif
} }
} }
else if (LCDML.BT_checkEnter() && encoderDir[ENC_R].ButtonPressed()) else if (LCDML.BT_checkEnter() && encoderDir[ENC_R].ButtonPressed())

Loading…
Cancel
Save