♻️ Small sound / buzz refactor (#24520)
This commit is contained in:
@ -765,7 +765,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
|
||||
case 290: M290(); break; // M290: Babystepping
|
||||
#endif
|
||||
|
||||
#if HAS_BUZZER
|
||||
#if HAS_SOUND
|
||||
case 300: M300(); break; // M300: Play beep tone
|
||||
#endif
|
||||
|
||||
|
@ -914,7 +914,7 @@ private:
|
||||
static void M290();
|
||||
#endif
|
||||
|
||||
#if HAS_BUZZER
|
||||
#if HAS_SOUND
|
||||
static void M300();
|
||||
#endif
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if HAS_BUZZER
|
||||
#if HAS_SOUND
|
||||
|
||||
#include "../gcode.h"
|
||||
|
||||
@ -42,4 +42,4 @@ void GcodeSuite::M300() {
|
||||
BUZZ(duration, frequency);
|
||||
}
|
||||
|
||||
#endif // HAS_BUZZER
|
||||
#endif // HAS_SOUND
|
||||
|
Reference in New Issue
Block a user