From 453b1990576d9991dfd50e7cc10fab6297b52bfb Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Tue, 7 Aug 2018 15:05:18 +0200 Subject: [PATCH] Save 8B flash, fix compiler warning sketch/sound.cpp:62:6: warning: unused parameter 'eSoundClass' [-Wunused-parameter] --- Firmware/lcd.cpp | 2 +- Firmware/sound.cpp | 2 +- Firmware/sound.h | 2 +- Firmware/ultralcd.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Firmware/lcd.cpp b/Firmware/lcd.cpp index 6def491e..d6574d4b 100644 --- a/Firmware/lcd.cpp +++ b/Firmware/lcd.cpp @@ -691,7 +691,7 @@ void lcd_beeper_quick_feedback(void) { 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++) { diff --git a/Firmware/sound.cpp b/Firmware/sound.cpp index d808dfa8..6e41d252 100644 --- a/Firmware/sound.cpp +++ b/Firmware/sound.cpp @@ -59,7 +59,7 @@ switch(eSoundMode) Sound_SaveMode(); } -void Sound_MakeSound(eSOUND_CLASS eSoundClass,eSOUND_TYPE eSoundType) +void Sound_MakeSound(eSOUND_TYPE eSoundType) { switch(eSoundMode) { diff --git a/Firmware/sound.h b/Firmware/sound.h index 9415b763..479f113e 100644 --- a/Firmware/sound.h +++ b/Firmware/sound.h @@ -26,7 +26,7 @@ extern void Sound_Init(void); extern void Sound_Default(void); extern void Sound_Save(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_Prompt(void); diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 0ca7cf92..2f3db906 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -5188,7 +5188,7 @@ void unload_filament() disable_e2(); delay(100); - Sound_MakeSound(e_SOUND_CLASS_Prompt, e_SOUND_TYPE_StandardPrompt); + Sound_MakeSound(e_SOUND_TYPE_StandardPrompt); uint8_t counterBeep = 0; while (!lcd_clicked() && (counterBeep < 50)) { delay_keep_alive(100);