|
@@ -138,8 +138,9 @@ void _menu_temp_filament_op(const PauseMode mode, const int8_t extruder) {
|
138
|
138
|
SUBMENU_N_P(s, msg, []{ _menu_temp_filament_op(PAUSE_MODE_CHANGE_FILAMENT, MenuItemBase::itemIndex); });
|
139
|
139
|
else {
|
140
|
140
|
ACTION_ITEM_N_P(s, msg, []{
|
141
|
|
- char cmd[13];
|
142
|
|
- sprintf_P(cmd, PSTR("M600 B0 T%i"), int(MenuItemBase::itemIndex));
|
|
141
|
+ PGM_P const cmdpstr = PSTR("M600 B0 T%i");
|
|
142
|
+ char cmd[strlen_P(cmdpstr) + 3 + 1];
|
|
143
|
+ sprintf_P(cmd, cmdpstr, int(MenuItemBase::itemIndex));
|
143
|
144
|
queue.inject(cmd);
|
144
|
145
|
});
|
145
|
146
|
}
|