Browse Source

Fix material preset type

Scott Lahteine 5 years ago
parent
commit
d0f2fde920
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/lcd/M145.cpp

+ 1
- 1
Marlin/src/gcode/lcd/M145.cpp View File

@@ -40,7 +40,7 @@ void GcodeSuite::M145() {
40 40
   if (material >= PREHEAT_COUNT)
41 41
     SERIAL_ERROR_MSG(STR_ERR_MATERIAL_INDEX);
42 42
   else {
43
-    preset_t &mat = ui.material_preset[material];
43
+    preheat_t &mat = ui.material_preset[material];
44 44
     #if HAS_HOTEND
45 45
       if (parser.seenval('H'))
46 46
         mat.hotend_temp = constrain(parser.value_int(), EXTRUDE_MINTEMP, (HEATER_0_MAXTEMP) - (HOTEND_OVERSHOOT));

Loading…
Cancel
Save