From 03676d8e2febed3f5a8ff89569893bd2811b4765 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 9 Mar 2018 06:07:52 -0600 Subject: [PATCH] Fix `_tmc_say_axis` string address Fixes #10003 --- Marlin/tmc_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/tmc_util.cpp b/Marlin/tmc_util.cpp index 9b2c35582..f1215c860 100644 --- a/Marlin/tmc_util.cpp +++ b/Marlin/tmc_util.cpp @@ -222,7 +222,7 @@ void _tmc_say_axis(const TMC_AxisEnum axis) { ext_E2[] PROGMEM = "E2", ext_E3[] PROGMEM = "E3", ext_E4[] PROGMEM = "E4"; const static char* const tmc_axes[] PROGMEM = { ext_X, ext_X2, ext_Y, ext_Y2, ext_Z, ext_Z2, ext_E0, ext_E1, ext_E2, ext_E3, ext_E4 }; - serialprintPGM(tmc_axes[axis]); + serialprintPGM((char*)pgm_read_word(&tmc_axes[axis])); } void _tmc_say_current(const TMC_AxisEnum axis, const uint16_t curr) {