Added config to enable NGC parameter reporting, default on.

This commit is contained in:
Terje Io
2024-04-27 23:33:33 +02:00
parent 3a7a65ea7c
commit c6aeef14cf
8 changed files with 56 additions and 6 deletions
+2
View File
@@ -3355,8 +3355,10 @@ status_code_t gc_execute_block (char *block)
case NonModal_MacroCall:
{
#if NGC_PARAMETERS_ENABLE
ngc_named_param_set("_value", 0.0f);
ngc_named_param_set("_value_returned", 0.0f);
#endif
status_code_t status = grbl.on_macro_execute((macro_id_t)gc_block.values.p);
return status == Status_Unhandled ? Status_GcodeValueOutOfRange : status;