🩹 Fix some parameters w/out values (#24051)

This commit is contained in:
DerAndere
2022-04-18 06:03:39 +02:00
committed by GitHub
parent fd082df077
commit 2ee39b62f3
16 changed files with 35 additions and 62 deletions

View File

@@ -71,7 +71,7 @@ void GcodeSuite::G61() {
if (parser.seen(NUM_AXIS_GANG("X", "Y", "Z", STR_I, STR_J, STR_K, STR_U, STR_V, STR_W))) {
DEBUG_ECHOPGM(STR_RESTORING_POS " S", slot);
LOOP_NUM_AXES(i) {
destination[i] = parser.seen(AXIS_CHAR(i))
destination[i] = parser.seenval(AXIS_CHAR(i))
? stored_position[slot][i] + parser.value_axis_units((AxisEnum)i)
: current_position[i];
DEBUG_CHAR(' ', AXIS_CHAR(i));