소스 검색

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…
취소
저장