We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8f590f commit f117499Copy full SHA for f117499
Marlin/src/gcode/feature/pause/G60.cpp
@@ -40,13 +40,13 @@ void GcodeSuite::G60() {
40
const bool seenQ = parser.seenval('Q');
41
const uint8_t slot = seenQ ? parser.value_byte() : parser.byteval('S');
42
43
+ if (seenQ) return G61(slot);
44
+
45
if (slot >= SAVED_POSITIONS) {
46
SERIAL_ERROR_MSG(STR_INVALID_POS_SLOT STRINGIFY(SAVED_POSITIONS));
47
return;
48
}
49
- if (seenQ) return G61(slot);
-
50
stored_position[slot] = current_position;
51
SBI(saved_slots[slot >> 3], slot & 0x07);
52
0 commit comments