Use PGM_P for PSTR pointers (#11977)
This commit is contained in:
@ -366,7 +366,7 @@ void Endstops::event_handler() {
|
||||
prev_hit_state = hit_state;
|
||||
} // Endstops::report_state
|
||||
|
||||
static void print_es_state(const bool is_hit, const char * const label=NULL) {
|
||||
static void print_es_state(const bool is_hit, PGM_P const label=NULL) {
|
||||
if (label) serialprintPGM(label);
|
||||
SERIAL_PROTOCOLPGM(": ");
|
||||
serialprintPGM(is_hit ? PSTR(MSG_ENDSTOP_HIT) : PSTR(MSG_ENDSTOP_OPEN));
|
||||
|
Reference in New Issue
Block a user