Use temperature accessors
This commit is contained in:
@ -67,7 +67,7 @@ static void _change_filament_with_preset() {
|
||||
}
|
||||
|
||||
static void _change_filament_with_custom() {
|
||||
_change_filament_with_temp(thermalManager.temp_hotend[MenuItemBase::itemIndex].target);
|
||||
_change_filament_with_temp(thermalManager.degTargetHotend(MenuItemBase::itemIndex));
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -147,7 +147,7 @@ void menu_temperature() {
|
||||
#if HAS_TEMP_HOTEND || HAS_HEATED_BED
|
||||
bool has_heat = false;
|
||||
#if HAS_TEMP_HOTEND
|
||||
HOTEND_LOOP() if (thermalManager.temp_hotend[HOTEND_INDEX].target) { has_heat = true; break; }
|
||||
HOTEND_LOOP() if (thermalManager.degTargetHotend(HOTEND_INDEX)) { has_heat = true; break; }
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -271,7 +271,7 @@ void menu_temperature() {
|
||||
//
|
||||
// Cooldown
|
||||
//
|
||||
if (TERN0(HAS_HEATED_BED, thermalManager.temp_bed.target)) has_heat = true;
|
||||
if (TERN0(HAS_HEATED_BED, thermalManager.degTargetBed())) has_heat = true;
|
||||
if (has_heat) ACTION_ITEM(MSG_COOLDOWN, lcd_cooldown);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user