mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-26 21:36:21 +00:00
🎨 Fix MarlinUI "untyped" string args (#27046)
This commit is contained in:
parent
e8d953257e
commit
fde330af5a
@ -1647,11 +1647,11 @@ void MarlinUI::host_notify(const char * const cstr) {
|
||||
//
|
||||
// Send the status line as a host notification
|
||||
//
|
||||
void MarlinUI::_set_status(const char * const cstr, const bool, const bool pgm) {
|
||||
host_notify(cstr);
|
||||
void MarlinUI::_set_status(const char * const ustr, const bool, const bool pgm) {
|
||||
host_notify(ustr);
|
||||
}
|
||||
void MarlinUI::_set_alert(const char * const cstr, const int8_t, const bool pgm) {
|
||||
host_notify(cstr);
|
||||
void MarlinUI::_set_alert(const char * const ustr, const int8_t, const bool pgm) {
|
||||
host_notify(ustr);
|
||||
}
|
||||
void MarlinUI::_set_status_and_level(const char * const ustr, const int8_t=0, const bool pgm) {
|
||||
pgm ? host_notify_P(ustr) : host_notify(ustr);
|
||||
|
@ -182,7 +182,7 @@ typedef bool (*statusResetFunc_t)();
|
||||
static bool constexpr processing = false;
|
||||
#endif
|
||||
static void task();
|
||||
static void soon(const AxisEnum axis OPTARG(MULTI_E_MANUAL, const int8_t eindex=active_extruder));
|
||||
static void soon(const AxisEnum move_axis OPTARG(MULTI_E_MANUAL, const int8_t eindex=active_extruder));
|
||||
};
|
||||
|
||||
void lcd_move_axis(const AxisEnum);
|
||||
@ -370,7 +370,7 @@ public:
|
||||
static constexpr uint8_t get_progress_percent() { return 0; }
|
||||
#endif
|
||||
|
||||
static void host_notify_P(PGM_P const fstr);
|
||||
static void host_notify_P(PGM_P const pstr);
|
||||
static void host_notify(FSTR_P const fstr) { host_notify_P(FTOP(fstr)); }
|
||||
static void host_notify(const char * const cstr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user