瀏覽代碼

Fix M914 value range (-64...+63)

Fix #10896
Scott Lahteine 6 年之前
父節點
當前提交
3f2a062a57
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/gcode/feature/trinamic/M911-M915.cpp

+ 1
- 1
Marlin/src/gcode/feature/trinamic/M911-M915.cpp 查看文件

@@ -265,7 +265,7 @@ void GcodeSuite::M912() {
265 265
     bool report = true;
266 266
     const uint8_t index = parser.byteval('I');
267 267
     LOOP_XYZ(i) if (parser.seen(axis_codes[i])) {
268
-      const int8_t value = (int8_t)constrain(parser.value_int(), -63, 64);
268
+      const int8_t value = (int8_t)constrain(parser.value_int(), -64, 63);
269 269
       report = false;
270 270
       switch (i) {
271 271
         case X_AXIS:

Loading…
取消
儲存