|
|
@ -22,6 +22,7 @@ |
|
|
|
|
|
|
|
#include "serial.h" |
|
|
|
#include "language.h" |
|
|
|
#include "enum.h" |
|
|
|
|
|
|
|
uint8_t marlin_debug_flags = MARLIN_DEBUG_NONE; |
|
|
|
|
|
|
@ -61,21 +62,15 @@ void print_bin(const uint16_t val) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
|
|
|
|
|
#include "enum.h" |
|
|
|
|
|
|
|
void print_xyz(PGM_P const prefix, PGM_P const suffix, const float x, const float y, const float z) { |
|
|
|
serialprintPGM(prefix); |
|
|
|
SERIAL_CHAR('('); |
|
|
|
SERIAL_ECHO(x); |
|
|
|
SERIAL_ECHOPAIR(", ", y, ", ", z); |
|
|
|
SERIAL_CHAR(')'); |
|
|
|
if (suffix) serialprintPGM(suffix); else SERIAL_EOL(); |
|
|
|
} |
|
|
|
|
|
|
|
void print_xyz(PGM_P const prefix, PGM_P const suffix, const float xyz[]) { |
|
|
|
print_xyz(prefix, suffix, xyz[X_AXIS], xyz[Y_AXIS], xyz[Z_AXIS]); |
|
|
|
} |
|
|
|
void print_xyz(PGM_P const prefix, PGM_P const suffix, const float x, const float y, const float z) { |
|
|
|
serialprintPGM(prefix); |
|
|
|
SERIAL_CHAR('('); |
|
|
|
SERIAL_ECHO(x); |
|
|
|
SERIAL_ECHOPAIR(", ", y, ", ", z); |
|
|
|
SERIAL_CHAR(')'); |
|
|
|
if (suffix) serialprintPGM(suffix); else SERIAL_EOL(); |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
void print_xyz(PGM_P const prefix, PGM_P const suffix, const float xyz[]) { |
|
|
|
print_xyz(prefix, suffix, xyz[X_AXIS], xyz[Y_AXIS], xyz[Z_AXIS]); |
|
|
|
} |
|
|
|