Skip to content
Snippets Groups Projects
Commit 3f2a062a authored by Scott Lahteine's avatar Scott Lahteine
Browse files

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

Fix #10896
parent b6cd8d9c
Branches
Tags
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment