|
|
|
@ -180,12 +180,7 @@ void serial_spaces(uint8_t count);
|
|
|
|
|
|
|
|
|
|
void print_bin(const uint16_t val);
|
|
|
|
|
|
|
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
|
|
|
void print_xyz(PGM_P const prefix, PGM_P const suffix, const float x, const float y, const float z);
|
|
|
|
|
void print_xyz(PGM_P const prefix, PGM_P const suffix, const float xyz[]);
|
|
|
|
|
#define SERIAL_POS(SUFFIX,VAR) do { print_xyz(PSTR(" " STRINGIFY(VAR) "="), PSTR(" : " SUFFIX "\n"), VAR); } while(0)
|
|
|
|
|
#define SERIAL_XYZ(PREFIX,...) do { print_xyz(PSTR(PREFIX), NULL, __VA_ARGS__); } while(0)
|
|
|
|
|
#else
|
|
|
|
|
#define SERIAL_POS(...) NOOP
|
|
|
|
|
#define SERIAL_XYZ(...) NOOP
|
|
|
|
|
#endif
|
|
|
|
|
void print_xyz(PGM_P const prefix, PGM_P const suffix, const float x, const float y, const float z);
|
|
|
|
|
void print_xyz(PGM_P const prefix, PGM_P const suffix, const float xyz[]);
|
|
|
|
|
#define SERIAL_POS(SUFFIX,VAR) do { print_xyz(PSTR(" " STRINGIFY(VAR) "="), PSTR(" : " SUFFIX "\n"), VAR); } while(0)
|
|
|
|
|
#define SERIAL_XYZ(PREFIX,...) do { print_xyz(PSTR(PREFIX), NULL, __VA_ARGS__); } while(0)
|
|
|
|
|