Skip to content

Commit 3c9464e

Browse files
committed
Tweak G60/G61 slots
1 parent 5b12627 commit 3c9464e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void GcodeSuite::G60() {
4545
}
4646

4747
stored_position[slot] = current_position;
48-
SBI(saved_slots[slot >> 3], slot & 0b00000111);
48+
SBI(saved_slots[slot >> 3], slot & 0x07);
4949

5050
#if ENABLED(SAVED_POSITIONS_DEBUG)
5151
const xyze_pos_t &pos = stored_position[slot];

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void GcodeSuite::G61(void) {
4848
#endif
4949

5050
// No saved position? No axes being restored?
51-
if (!TEST(saved_slots[slot >> 3], slot & 0b00000111) || !parser.seen("XYZ")) return;
51+
if (!TEST(saved_slots[slot >> 3], slot & 0x07) || !parser.seen("XYZ")) return;
5252

5353
// Apply any given feedrate over 0.0
5454
const float fr = parser.linearval('F');

0 commit comments

Comments
 (0)