Added API call for overriding jerk settings, symbol for M201.3 gcode.

This commit is contained in:
Terje Io
2025-01-29 15:51:25 +01:00
parent dfa1b262a4
commit fd3438da34
6 changed files with 63 additions and 5 deletions
+3 -3
View File
@@ -1279,7 +1279,7 @@ status_code_t gc_execute_block (char *block)
continue;
}
if(mantissa > 0)
if(int_value <= 99 && mantissa > 0)
FAIL(Status_GcodeCommandValueNotInteger); // [No Mxx.x commands]
user_mcode = UserMCode_Unsupported;
@@ -1398,8 +1398,8 @@ status_code_t gc_execute_block (char *block)
break;
default:
if(grbl.user_mcode.check && (user_mcode = grbl.user_mcode.check((user_mcode_t)int_value))) {
gc_block.user_mcode = (user_mcode_t)int_value;
if(grbl.user_mcode.check && (user_mcode = grbl.user_mcode.check((user_mcode_t)(mantissa ? int_value * 100 + mantissa : int_value)))) {
gc_block.user_mcode = (user_mcode_t)(mantissa ? int_value * 100 + mantissa : int_value);
word_bit.modal_group.M10 = On;
} else
FAIL(Status_GcodeUnsupportedCommand); // [Unsupported M command]