Save 8B flash, fix compiler warning sketch/sound.cpp:62:6: warning: unused parameter 'eSoundClass' [-Wunused-parameter]

This commit is contained in:
Marek Bel 2018-08-07 15:05:18 +02:00
parent 548f4cb1fa
commit 453b199057
4 changed files with 4 additions and 4 deletions

View File

@ -691,7 +691,7 @@ void lcd_beeper_quick_feedback(void)
{ {
SET_OUTPUT(BEEPER); SET_OUTPUT(BEEPER);
//-// //-//
Sound_MakeSound(e_SOUND_CLASS_Echo,e_SOUND_TYPE_ButtonEcho); Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
/* /*
for(int8_t i = 0; i < 10; i++) for(int8_t i = 0; i < 10; i++)
{ {

View File

@ -59,7 +59,7 @@ switch(eSoundMode)
Sound_SaveMode(); Sound_SaveMode();
} }
void Sound_MakeSound(eSOUND_CLASS eSoundClass,eSOUND_TYPE eSoundType) void Sound_MakeSound(eSOUND_TYPE eSoundType)
{ {
switch(eSoundMode) switch(eSoundMode)
{ {

View File

@ -26,7 +26,7 @@ extern void Sound_Init(void);
extern void Sound_Default(void); extern void Sound_Default(void);
extern void Sound_Save(void); extern void Sound_Save(void);
extern void Sound_CycleState(void); extern void Sound_CycleState(void);
extern void Sound_MakeSound(eSOUND_CLASS eSoundClass,eSOUND_TYPE eSoundType); extern void Sound_MakeSound(eSOUND_TYPE eSoundType);
//static void Sound_DoSound_Echo(void); //static void Sound_DoSound_Echo(void);
//static void Sound_DoSound_Prompt(void); //static void Sound_DoSound_Prompt(void);

View File

@ -5188,7 +5188,7 @@ void unload_filament()
disable_e2(); disable_e2();
delay(100); delay(100);
Sound_MakeSound(e_SOUND_CLASS_Prompt, e_SOUND_TYPE_StandardPrompt); Sound_MakeSound(e_SOUND_TYPE_StandardPrompt);
uint8_t counterBeep = 0; uint8_t counterBeep = 0;
while (!lcd_clicked() && (counterBeep < 50)) { while (!lcd_clicked() && (counterBeep < 50)) {
delay_keep_alive(100); delay_keep_alive(100);