Browse Source

Tweak G60/G61 slots

Scott Lahteine 5 years ago
parent
commit
3c9464eea4
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/src/gcode/feature/pause/G60.cpp
  2. 1
    1
      Marlin/src/gcode/feature/pause/G61.cpp

+ 1
- 1
Marlin/src/gcode/feature/pause/G60.cpp View File

@@ -45,7 +45,7 @@ void GcodeSuite::G60() {
45 45
   }
46 46
 
47 47
   stored_position[slot] = current_position;
48
-  SBI(saved_slots[slot >> 3], slot & 0b00000111);
48
+  SBI(saved_slots[slot >> 3], slot & 0x07);
49 49
 
50 50
   #if ENABLED(SAVED_POSITIONS_DEBUG)
51 51
     const xyze_pos_t &pos = stored_position[slot];

+ 1
- 1
Marlin/src/gcode/feature/pause/G61.cpp View File

@@ -48,7 +48,7 @@ void GcodeSuite::G61(void) {
48 48
   #endif
49 49
 
50 50
   // 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;
52 52
 
53 53
   // Apply any given feedrate over 0.0
54 54
   const float fr = parser.linearval('F');

Loading…
Cancel
Save