Merge pull request #999 from MRprusa3d/MK3

Sound
This commit is contained in:
PavelSindler 2018-08-02 09:16:51 +02:00 committed by GitHub
commit b20c66e3b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}