Skip to content

Commit 4044167

Browse files
committed
use read_real_value for return statements, so that the returned value does not need to be in []
1 parent 5825b36 commit 4044167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngc_flowctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ status_code_t ngc_flowctrl (uint32_t o_label, char *line, uint_fast8_t *pos, boo
577577
else if((g65_return = !!grbl.on_macro_return))
578578
ngc_flowctrl_unwind_stack(stack[stack_idx].file);
579579

580-
if(ngc_eval_expression(line, pos, &value) == Status_OK) {
580+
if(read_real_value(line, pos, &value) == Status_OK) {
581581
ngc_named_param_set("_value", value);
582582
ngc_named_param_set("_value_returned", 1.0f);
583583
} else

0 commit comments

Comments
 (0)