瀏覽代碼

Fix _tmc_say_axis string address

Fixes #10003
Scott Lahteine 6 年之前
父節點
當前提交
cc59ac4603
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/feature/tmc_util.cpp

+ 1
- 1
Marlin/src/feature/tmc_util.cpp 查看文件

@@ -224,7 +224,7 @@ void _tmc_say_axis(const TMC_AxisEnum axis) {
224 224
                     ext_E2[] PROGMEM = "E2", ext_E3[] PROGMEM = "E3",
225 225
                     ext_E4[] PROGMEM = "E4";
226 226
   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 };
227
-  serialprintPGM(tmc_axes[axis]);
227
+  serialprintPGM((char*)pgm_read_word(&tmc_axes[axis]));
228 228
 }
229 229
 
230 230
 void _tmc_say_current(const TMC_AxisEnum axis, const uint16_t curr) {

Loading…
取消
儲存