Co-Authored-By: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
committed by
Scott Lahteine
parent
884308f964
commit
af1d603374
@ -154,6 +154,10 @@
|
||||
#include "../libs/buzzer.h"
|
||||
#endif
|
||||
|
||||
#if HAS_FANCHECK
|
||||
#include "../feature/fancheck.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(DGUS_LCD_UI_MKS)
|
||||
#include "../lcd/extui/dgus/DGUSScreenHandler.h"
|
||||
#include "../lcd/extui/dgus/DGUSDisplayDef.h"
|
||||
@ -491,6 +495,13 @@ typedef struct SettingsDataStruct {
|
||||
bool buzzer_enabled;
|
||||
#endif
|
||||
|
||||
//
|
||||
// Fan tachometer check
|
||||
//
|
||||
#if HAS_FANCHECK
|
||||
bool fan_check_enabled;
|
||||
#endif
|
||||
|
||||
//
|
||||
// MKS UI controller
|
||||
//
|
||||
@ -1433,6 +1444,13 @@ void MarlinSettings::postprocess() {
|
||||
EEPROM_WRITE(ui.buzzer_enabled);
|
||||
#endif
|
||||
|
||||
//
|
||||
// Fan tachometer check
|
||||
//
|
||||
#if HAS_FANCHECK
|
||||
EEPROM_WRITE(fan_check.enabled);
|
||||
#endif
|
||||
|
||||
//
|
||||
// MKS UI controller
|
||||
//
|
||||
@ -2339,6 +2357,14 @@ void MarlinSettings::postprocess() {
|
||||
EEPROM_READ(ui.buzzer_enabled);
|
||||
#endif
|
||||
|
||||
//
|
||||
// Fan tachometer check
|
||||
//
|
||||
#if HAS_FANCHECK
|
||||
_FIELD_TEST(fan_check_enabled);
|
||||
EEPROM_READ(fan_check.enabled);
|
||||
#endif
|
||||
|
||||
//
|
||||
// MKS UI controller
|
||||
//
|
||||
@ -3036,6 +3062,11 @@ void MarlinSettings::reset() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Fan tachometer check
|
||||
//
|
||||
TERN_(HAS_FANCHECK, fan_check.enabled = true);
|
||||
|
||||
//
|
||||
// MKS UI controller
|
||||
//
|
||||
|
Reference in New Issue
Block a user