|
@@ -573,19 +573,19 @@ void serial_echopair_P(const char* s_P, unsigned long v) { serialprintPGM(s_P);
|
573
|
573
|
static void report_current_position();
|
574
|
574
|
|
575
|
575
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
576
|
|
- void print_xyz(const char* prefix, const float x, const float y, const float z) {
|
577
|
|
- SERIAL_ECHO(prefix);
|
578
|
|
- SERIAL_ECHOPAIR(": (", x);
|
|
576
|
+ void print_xyz(const char* suffix, const float x, const float y, const float z) {
|
|
577
|
+ SERIAL_ECHOPAIR("(", x);
|
579
|
578
|
SERIAL_ECHOPAIR(", ", y);
|
580
|
579
|
SERIAL_ECHOPAIR(", ", z);
|
581
|
|
- SERIAL_ECHOLNPGM(")");
|
|
580
|
+ SERIAL_ECHOLNPGM(") ");
|
|
581
|
+ SERIAL_ECHO(suffix);
|
582
|
582
|
}
|
583
|
|
- void print_xyz(const char* prefix, const float xyz[]) {
|
584
|
|
- print_xyz(prefix, xyz[X_AXIS], xyz[Y_AXIS], xyz[Z_AXIS]);
|
|
583
|
+ void print_xyz(const char* suffix, const float xyz[]) {
|
|
584
|
+ print_xyz(suffix, xyz[X_AXIS], xyz[Y_AXIS], xyz[Z_AXIS]);
|
585
|
585
|
}
|
586
|
586
|
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
|
587
|
|
- void print_xyz(const char* prefix, const vector_3 &xyz) {
|
588
|
|
- print_xyz(prefix, xyz.x, xyz.y, xyz.z);
|
|
587
|
+ void print_xyz(const char* suffix, const vector_3 &xyz) {
|
|
588
|
+ print_xyz(suffix, xyz.x, xyz.y, xyz.z);
|
589
|
589
|
}
|
590
|
590
|
#endif
|
591
|
591
|
#define DEBUG_POS(PREFIX,VAR) do{ SERIAL_ECHOPGM(PREFIX); print_xyz(" > " STRINGIFY(VAR), VAR); }while(0)
|