Encapsulate Temperature items

This commit is contained in:
Scott Lahteine
2020-04-27 04:35:20 -05:00
parent 011ecc341a
commit 3d45a4bd23
5 changed files with 31 additions and 33 deletions

View File

@@ -322,6 +322,7 @@ class Temperature {
#if HAS_HOTEND
#define HOTEND_TEMPS (HOTENDS + ENABLED(TEMP_SENSOR_1_AS_REDUNDANT))
static hotend_info_t temp_hotend[HOTEND_TEMPS];
static constexpr int16_t heater_maxtemp[HOTENDS] = ARRAY_BY_HOTENDS(HEATER_0_MAXTEMP, HEATER_1_MAXTEMP, HEATER_2_MAXTEMP, HEATER_3_MAXTEMP, HEATER_4_MAXTEMP, HEATER_5_MAXTEMP, HEATER_6_MAXTEMP, HEATER_7_MAXTEMP);
#endif
TERN_(HAS_HEATED_BED, static bed_info_t temp_bed);
TERN_(HAS_TEMP_PROBE, static probe_info_t temp_probe);
@@ -779,6 +780,10 @@ class Temperature {
TERN_(HAS_DISPLAY, static void set_heating_message(const uint8_t e));
#if HAS_LCD_MENU
static void lcd_preheat(const int16_t e, const int8_t indh, const int8_t indb);
#endif
private:
static void update_raw_temperatures();
static void updateTemperaturesFromRawValues();