Browse Source

Fix lcd_preheat dummy variable types

Thomas Moore 6 years ago
parent
commit
429e6ba8a6
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/module/configuration_store.cpp

+ 4
- 4
Marlin/src/module/configuration_store.cpp View File

@@ -547,9 +547,9 @@ void MarlinSettings::postprocess() {
547 547
     _FIELD_TEST(lcd_preheat_hotend_temp);
548 548
 
549 549
     #if DISABLED(ULTIPANEL)
550
-      constexpr int lcd_preheat_hotend_temp[2] = { PREHEAT_1_TEMP_HOTEND, PREHEAT_2_TEMP_HOTEND },
551
-                    lcd_preheat_bed_temp[2] = { PREHEAT_1_TEMP_BED, PREHEAT_2_TEMP_BED },
552
-                    lcd_preheat_fan_speed[2] = { PREHEAT_1_FAN_SPEED, PREHEAT_2_FAN_SPEED };
550
+      constexpr int16_t lcd_preheat_hotend_temp[2] = { PREHEAT_1_TEMP_HOTEND, PREHEAT_2_TEMP_HOTEND },
551
+                        lcd_preheat_bed_temp[2] = { PREHEAT_1_TEMP_BED, PREHEAT_2_TEMP_BED },
552
+                        lcd_preheat_fan_speed[2] = { PREHEAT_1_FAN_SPEED, PREHEAT_2_FAN_SPEED };
553 553
     #endif
554 554
 
555 555
     EEPROM_WRITE(lcd_preheat_hotend_temp);
@@ -1076,7 +1076,7 @@ void MarlinSettings::postprocess() {
1076 1076
       _FIELD_TEST(lcd_preheat_hotend_temp);
1077 1077
 
1078 1078
       #if DISABLED(ULTIPANEL)
1079
-        int lcd_preheat_hotend_temp[2], lcd_preheat_bed_temp[2], lcd_preheat_fan_speed[2];
1079
+        int16_t lcd_preheat_hotend_temp[2], lcd_preheat_bed_temp[2], lcd_preheat_fan_speed[2];
1080 1080
       #endif
1081 1081
       EEPROM_READ(lcd_preheat_hotend_temp); // 2 floats
1082 1082
       EEPROM_READ(lcd_preheat_bed_temp);    // 2 floats

Loading…
Cancel
Save