Explorar el Código

Fix _tmc_say_axis string address

Fixes #10003
Scott Lahteine hace 6 años
padre
commit
cc59ac4603
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/src/feature/tmc_util.cpp

+ 1
- 1
Marlin/src/feature/tmc_util.cpp Ver fichero

224
                     ext_E2[] PROGMEM = "E2", ext_E3[] PROGMEM = "E3",
224
                     ext_E2[] PROGMEM = "E2", ext_E3[] PROGMEM = "E3",
225
                     ext_E4[] PROGMEM = "E4";
225
                     ext_E4[] PROGMEM = "E4";
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 };
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
 void _tmc_say_current(const TMC_AxisEnum axis, const uint16_t curr) {
230
 void _tmc_say_current(const TMC_AxisEnum axis, const uint16_t curr) {

Loading…
Cancelar
Guardar