From 3f2a062a57f90561b59772e1e0db6da28701f410 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 29 May 2018 12:02:15 -0500 Subject: [PATCH] Fix M914 value range (-64...+63) Fix #10896 --- Marlin/src/gcode/feature/trinamic/M911-M915.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/gcode/feature/trinamic/M911-M915.cpp b/Marlin/src/gcode/feature/trinamic/M911-M915.cpp index b9899c8a51..b812bd5722 100644 --- a/Marlin/src/gcode/feature/trinamic/M911-M915.cpp +++ b/Marlin/src/gcode/feature/trinamic/M911-M915.cpp @@ -265,7 +265,7 @@ void GcodeSuite::M912() { bool report = true; const uint8_t index = parser.byteval('I'); LOOP_XYZ(i) if (parser.seen(axis_codes[i])) { - const int8_t value = (int8_t)constrain(parser.value_int(), -63, 64); + const int8_t value = (int8_t)constrain(parser.value_int(), -64, 63); report = false; switch (i) { case X_AXIS: