Skip to content

Commit

Permalink
Tweak G60/G61 slots
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and GeminiServer committed Jan 31, 2020
1 parent d6015cf commit 87df8a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/gcode/feature/pause/G60.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void GcodeSuite::G60() {
}

stored_position[slot] = current_position;
SBI(saved_slots[slot >> 3], slot & 0b00000111);
SBI(saved_slots[slot >> 3], slot & 0x07);

#if ENABLED(SAVED_POSITIONS_DEBUG)
const xyze_pos_t &pos = stored_position[slot];
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/gcode/feature/pause/G61.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void GcodeSuite::G61(void) {
#endif

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

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

0 comments on commit 87df8a9

Please sign in to comment.