Browse Source

Use pgm_read_ptr for tables of pointers

Scott Lahteine 7 years ago
parent
commit
ea1a83ce41
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/feature/tmc_util.cpp

+ 1
- 1
Marlin/src/feature/tmc_util.cpp View File

@@ -223,7 +223,7 @@ void _tmc_say_axis(const TMC_AxisEnum axis) {
223 223
                     ext_E2[] PROGMEM = "E2", ext_E3[] PROGMEM = "E3",
224 224
                     ext_E4[] PROGMEM = "E4";
225 225
   const static char* const tmc_axes[] PROGMEM = { ext_X, ext_Y, ext_Z, ext_X2, ext_Y2, ext_Z2, ext_E0, ext_E1, ext_E2, ext_E3, ext_E4 };
226
-  serialprintPGM((char*)pgm_read_word(&tmc_axes[axis]));
226
+  serialprintPGM((char*)pgm_read_ptr(&tmc_axes[axis]));
227 227
 }
228 228
 
229 229
 void _tmc_say_current(const TMC_AxisEnum axis, const uint16_t curr) {

Loading…
Cancel
Save