浏览代码

Tweak G60/G61 slots

Scott Lahteine 5 年前
父节点
当前提交
3c9464eea4
共有 2 个文件被更改,包括 2 次插入2 次删除
  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 查看文件

@@ -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 查看文件

@@ -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');

正在加载...
取消
保存