XYZ_CHAR macro

This commit is contained in:
Scott Lahteine
2020-03-01 10:36:15 -06:00
parent 3473b21710
commit c4db8e49a7
12 changed files with 30 additions and 29 deletions

View File

@ -45,8 +45,8 @@
void report_xyz(const xyz_pos_t &pos, const uint8_t precision=3) {
char str[12];
for (uint8_t a = X_AXIS; a <= Z_AXIS; a++) {
SERIAL_CHAR(' ', axis_codes[a], ':');
LOOP_XYZ(a) {
SERIAL_CHAR(' ', XYZ_CHAR(a), ':');
SERIAL_ECHO(dtostrf(pos[a], 1, precision, str));
}
SERIAL_EOL();