✨ SOUND_ON_DEFAULT option (#24102)
This commit is contained in:
committed by
Scott Lahteine
parent
b2b5b85045
commit
3443a9e18b
@ -531,7 +531,7 @@ typedef struct SettingsDataStruct {
|
||||
// Buzzer enable/disable
|
||||
//
|
||||
#if ENABLED(SOUND_MENU_ITEM)
|
||||
bool buzzer_enabled;
|
||||
bool sound_on;
|
||||
#endif
|
||||
|
||||
//
|
||||
@ -1537,7 +1537,7 @@ void MarlinSettings::postprocess() {
|
||||
// Buzzer enable/disable
|
||||
//
|
||||
#if ENABLED(SOUND_MENU_ITEM)
|
||||
EEPROM_WRITE(ui.buzzer_enabled);
|
||||
EEPROM_WRITE(ui.sound_on);
|
||||
#endif
|
||||
|
||||
//
|
||||
@ -2479,8 +2479,8 @@ void MarlinSettings::postprocess() {
|
||||
// Buzzer enable/disable
|
||||
//
|
||||
#if ENABLED(SOUND_MENU_ITEM)
|
||||
_FIELD_TEST(buzzer_enabled);
|
||||
EEPROM_READ(ui.buzzer_enabled);
|
||||
_FIELD_TEST(sound_on);
|
||||
EEPROM_READ(ui.sound_on);
|
||||
#endif
|
||||
|
||||
//
|
||||
@ -2858,7 +2858,9 @@ void MarlinSettings::reset() {
|
||||
//
|
||||
// Buzzer enable/disable
|
||||
//
|
||||
TERN_(SOUND_MENU_ITEM, ui.buzzer_enabled = true);
|
||||
#if ENABLED(SOUND_MENU_ITEM)
|
||||
ui.sound_on = ENABLED(SOUND_ON_DEFAULT);
|
||||
#endif
|
||||
|
||||
//
|
||||
// Magnetic Parking Extruder
|
||||
|
Reference in New Issue
Block a user