mirror of
https://github.com/grblHAL/core.git
synced 2026-09-25 17:14:51 +08:00
Added config to enable NGC parameter reporting, default on.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user