Use temperature accessors

This commit is contained in:
Scott Lahteine
2021-04-24 05:20:55 -05:00
parent 6f5800bd74
commit dfcccb63a1
6 changed files with 7 additions and 7 deletions

View File

@@ -644,7 +644,7 @@ static void drawAxisValue(AxisEnum axis) {
static void moveAxis(AxisEnum axis, const int8_t direction) {
quick_feedback();
if (axis == E_AXIS && thermalManager.temp_hotend[motionAxisState.e_selection].celsius < EXTRUDE_MINTEMP) {
if (axis == E_AXIS && thermalManager.tooColdToExtrude(motionAxisState.e_selection)) {
drawMessage("Too cold");
return;
}

View File

@@ -636,7 +636,7 @@ static void drawAxisValue(AxisEnum axis) {
static void moveAxis(AxisEnum axis, const int8_t direction) {
quick_feedback();
if (axis == E_AXIS && thermalManager.temp_hotend[motionAxisState.e_selection].celsius < EXTRUDE_MINTEMP) {
if (axis == E_AXIS && thermalManager.tooColdToExtrude(motionAxisState.e_selection)) {
drawMessage("Too cold");
return;
}