mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-25 07:33:56 -06:00
BUZZ cleanup (#14760)
This commit is contained in:
parent
6b02b89ab4
commit
c4bb458763
12 changed files with 74 additions and 34 deletions
|
@ -31,7 +31,9 @@
|
|||
#include "../../module/printcounter.h"
|
||||
#include "../../gcode/queue.h"
|
||||
#include "../../sd/cardreader.h"
|
||||
#include "../../libs/buzzer.h"
|
||||
#if HAS_BUZZER
|
||||
#include "../../libs/buzzer.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
#include "../../module/configuration_store.h"
|
||||
|
@ -346,13 +348,15 @@ void scroll_screen(const uint8_t limit, const bool is_menu) {
|
|||
encoderTopLine = encoderLine;
|
||||
}
|
||||
|
||||
void MarlinUI::completion_feedback(const bool good/*=true*/) {
|
||||
if (good) {
|
||||
BUZZ(100, 659);
|
||||
BUZZ(100, 698);
|
||||
#if HAS_BUZZER
|
||||
void MarlinUI::completion_feedback(const bool good/*=true*/) {
|
||||
if (good) {
|
||||
BUZZ(100, 659);
|
||||
BUZZ(100, 698);
|
||||
}
|
||||
else BUZZ(20, 440);
|
||||
}
|
||||
else BUZZ(20, 440);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAS_LINE_TO_Z
|
||||
|
||||
|
@ -433,8 +437,18 @@ void MarlinUI::completion_feedback(const bool good/*=true*/) {
|
|||
#endif
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
void lcd_store_settings() { ui.completion_feedback(settings.save()); }
|
||||
void lcd_load_settings() { ui.completion_feedback(settings.load()); }
|
||||
void lcd_store_settings() {
|
||||
const bool saved = settings.save();
|
||||
#if HAS_BUZZER
|
||||
ui.completion_feedback(saved);
|
||||
#endif
|
||||
}
|
||||
void lcd_load_settings() {
|
||||
const bool loaded = settings.load();
|
||||
#if HAS_BUZZER
|
||||
ui.completion_feedback(loaded);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
void _lcd_draw_homing() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue