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

Fix #10896
This commit is contained in:
Scott Lahteine 2018-05-29 12:03:01 -05:00
parent 7445f30cbf
commit 0460406154

View File

@ -11147,7 +11147,7 @@ inline void gcode_M502() {
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: