Explorar el Código

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

Fix #10896
Scott Lahteine hace 6 años
padre
commit
3f2a062a57
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/src/gcode/feature/trinamic/M911-M915.cpp

+ 1
- 1
Marlin/src/gcode/feature/trinamic/M911-M915.cpp Ver fichero

@@ -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…
Cancelar
Guardar