1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Use pgm_read_ptr for tables of pointers

This commit is contained in:
Scott Lahteine 2018-03-23 02:16:35 -04:00
parent 9da0797e29
commit ea1a83ce41

View File

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