Fix garbled print_xyz output (#18810)
This commit is contained in:
parent
a63ad32f71
commit
b5ece63778
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ void print_bin(uint16_t val) {
|
||||||
extern const char SP_X_STR[], SP_Y_STR[], SP_Z_STR[];
|
extern const char SP_X_STR[], SP_Y_STR[], SP_Z_STR[];
|
||||||
|
|
||||||
void print_xyz(const float &x, const float &y, const float &z, PGM_P const prefix/*=nullptr*/, PGM_P const suffix/*=nullptr*/) {
|
void print_xyz(const float &x, const float &y, const float &z, PGM_P const prefix/*=nullptr*/, PGM_P const suffix/*=nullptr*/) {
|
||||||
serialprintPGM(prefix);
|
if (prefix) serialprintPGM(prefix);
|
||||||
SERIAL_ECHOPAIR_P(SP_X_STR, x, SP_Y_STR, y, SP_Z_STR, z);
|
SERIAL_ECHOPAIR_P(SP_X_STR, x, SP_Y_STR, y, SP_Z_STR, z);
|
||||||
if (suffix) serialprintPGM(suffix); else SERIAL_EOL();
|
if (suffix) serialprintPGM(suffix); else SERIAL_EOL();
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue