Skip to content

Commit f117499

Browse files
committed
…etc…
1 parent f8f590f commit f117499

File tree

1 file changed

+2
-2
lines changed
  • Marlin/src/gcode/feature/pause

1 file changed

+2
-2
lines changed

Marlin/src/gcode/feature/pause/G60.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ void GcodeSuite::G60() {
4040
const bool seenQ = parser.seenval('Q');
4141
const uint8_t slot = seenQ ? parser.value_byte() : parser.byteval('S');
4242

43+
if (seenQ) return G61(slot);
44+
4345
if (slot >= SAVED_POSITIONS) {
4446
SERIAL_ERROR_MSG(STR_INVALID_POS_SLOT STRINGIFY(SAVED_POSITIONS));
4547
return;
4648
}
4749

48-
if (seenQ) return G61(slot);
49-
5050
stored_position[slot] = current_position;
5151
SBI(saved_slots[slot >> 3], slot & 0x07);
5252

0 commit comments

Comments
 (0)