🩹 Fix HOST_STATUS_NOTIFICATIONS compile (#26040)

This commit is contained in:
Giuliano Zaro
2023-07-05 08:21:54 +02:00
committed by GitHub
parent 67a9a7e66f
commit 57d26f7e4f
7 changed files with 8 additions and 12 deletions

View File

@@ -1431,9 +1431,6 @@ void MarlinUI::host_notify_P(PGM_P const pstr) {
void MarlinUI::host_notify(const char * const cstr) {
TERN_(HOST_STATUS_NOTIFICATIONS, hostui.notify(cstr));
}
void MarlinUI::host_status() {
TERN_(HOST_STATUS_NOTIFICATIONS, hostui.notify(status_message));
}
#include <stdarg.h>
@@ -1562,7 +1559,7 @@ void MarlinUI::host_status() {
vsnprintf_P(status_message, MAX_MESSAGE_LENGTH, fmt, args);
va_end(args);
host_status();
host_notify(status_message);
finish_status(level > 0);
}
@@ -1644,7 +1641,7 @@ void MarlinUI::host_status() {
vsnprintf_P(&msg, 30, fmt, args);
va_end(args);
host_status();
host_notify(msg);
}
#endif // !HAS_STATUS_MESSAGE

View File

@@ -361,7 +361,6 @@ public:
static void host_notify_P(PGM_P const fstr);
static void host_notify(FSTR_P const fstr) { host_notify_P(FTOP(fstr)); }
static void host_notify(const char * const cstr);
static void host_status();
#if HAS_STATUS_MESSAGE