Fix Chiron build errors.

This commit is contained in:
Knutwurst
2023-05-23 15:43:23 +02:00
parent 52dc811774
commit a2137565e5

View File

@@ -106,17 +106,6 @@
#endif #endif
} }
void setAxisPosition_mm(const float position, const axis_t axis, const feedRate_t feedrate /*=0*/) {
// Get motion limit from software endstops, if any
float min, max;
// max = soft_endstop.max[axis];
// min = soft_endstop.min[axis];
soft_endstop.get_manual_axis_limits((AxisEnum)axis, min, max);
current_position[axis] = constrain(position, min, max);
line_to_current_position(feedrate ?: 60);
}
void initializeGrid() { void initializeGrid() {
#if ENABLED(PROBE_MANUALLY) #if ENABLED(PROBE_MANUALLY)
#define ABL_VAR static #define ABL_VAR static
@@ -387,6 +376,7 @@
mediaPauseState = AMPAUSESTATE_NOT_PAUSED; mediaPauseState = AMPAUSESTATE_NOT_PAUSED;
SENDLINE_DBG_PGM("J04", "TFT Serial Debug: SD print resumed... J04"); // J04 printing form sd card now SENDLINE_DBG_PGM("J04", "TFT Serial Debug: SD print resumed... J04"); // J04 printing form sd card now
setUserConfirmed();
resumePrint(); resumePrint();
} }
#endif #endif
@@ -1643,7 +1633,7 @@
float Zvalue = bedlevel.z_values[mx][my]; float Zvalue = bedlevel.z_values[mx][my];
Zvalue = Zvalue * 100; Zvalue = Zvalue * 100;
if ((!planner.movesplanned()) && (TFTstate != ANYCUBIC_TFT_STATE_SDPAUSE) && (TFTstate != ANYCUBIC_TFT_STATE_SDOUTAGE)) { if (!isPrinting()) {
if (!all_axes_trusted()) { if (!all_axes_trusted()) {
queue.inject_P(PSTR("G28\n")); queue.inject_P(PSTR("G28\n"));
/* /*
@@ -1677,7 +1667,7 @@
break; break;
case 30: // A30 auto leveling (Old Anycubic TFT) case 30: // A30 auto leveling (Old Anycubic TFT)
if ((planner.movesplanned()) || (card.isPrinting())) if (isPrinting())
SENDLINE_DBG_PGM("J24", "TFT Serial Debug: Forbid auto leveling... J24"); SENDLINE_DBG_PGM("J24", "TFT Serial Debug: Forbid auto leveling... J24");
else else
SENDLINE_DBG_PGM("J26", "TFT Serial Debug: Start auto leveling... J26"); SENDLINE_DBG_PGM("J26", "TFT Serial Debug: Start auto leveling... J26");
@@ -1755,7 +1745,7 @@
break; break;
case 36: // A36 auto leveling (New Anycubic TFT) case 36: // A36 auto leveling (New Anycubic TFT)
if ((planner.movesplanned()) || (card.isPrinting())) if (isPrinting())
SENDLINE_DBG_PGM("J24", "TFT Serial Debug: Forbid auto leveling... J24"); SENDLINE_DBG_PGM("J24", "TFT Serial Debug: Forbid auto leveling... J24");
else else
SENDLINE_DBG_PGM("J26", "TFT Serial Debug: Start auto leveling... J26"); SENDLINE_DBG_PGM("J26", "TFT Serial Debug: Start auto leveling... J26");