From bafd290141e1bbce0ad4e5ce9f86ef0ec748c4fc Mon Sep 17 00:00:00 2001 From: MRprusa3d Date: Wed, 1 Aug 2018 22:34:58 +0200 Subject: [PATCH] Sound & TuneMenu --- Firmware/ultralcd.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 9e4aa291..556f8836 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -6234,6 +6234,25 @@ static void lcd_tune_menu() } } #endif //TMC2130 + + switch(eSoundMode) + { + case e_SOUND_MODE_LOUD: + MENU_ITEM_FUNCTION_P(_i(MSG_SOUND_MODE_LOUD),lcd_sound_state_set); + break; + case e_SOUND_MODE_ONCE: + MENU_ITEM_FUNCTION_P(_i(MSG_SOUND_MODE_ONCE),lcd_sound_state_set); + break; + case e_SOUND_MODE_SILENT: + MENU_ITEM_FUNCTION_P(_i(MSG_SOUND_MODE_SILENT),lcd_sound_state_set); + break; + case e_SOUND_MODE_MUTE: + MENU_ITEM_FUNCTION_P(_i(MSG_SOUND_MODE_MUTE),lcd_sound_state_set); + break; + default: + MENU_ITEM_FUNCTION_P(_i(MSG_SOUND_MODE_LOUD),lcd_sound_state_set); + } + MENU_END(); }