🚸 Clear "heating/cooling" message on temp reached
This commit is contained in:
@@ -59,6 +59,8 @@
|
||||
|
||||
#define START_OF_UTF8_CHAR(C) (((C) & 0xC0u) != 0x80U)
|
||||
|
||||
typedef bool (*statusResetFunc_t)();
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
enum LCDViewAction : uint8_t {
|
||||
@@ -352,11 +354,15 @@ public:
|
||||
static void reset_status(const bool no_welcome=false);
|
||||
static void set_alert_status(FSTR_P const fstr);
|
||||
static void reset_alert_level() { alert_level = 0; }
|
||||
|
||||
static statusResetFunc_t status_reset_callback;
|
||||
static void set_status_reset_fn(const statusResetFunc_t fn=nullptr) { status_reset_callback = fn; }
|
||||
#else
|
||||
static constexpr bool has_status() { return false; }
|
||||
static void reset_status(const bool=false) {}
|
||||
static void set_alert_status(FSTR_P const) {}
|
||||
static void reset_alert_level() {}
|
||||
static void set_status_reset_fn(const statusResetFunc_t=nullptr) {}
|
||||
#endif
|
||||
|
||||
static void set_status(const char * const cstr, const bool persist=false);
|
||||
|
||||
Reference in New Issue
Block a user