Skip to content

Commit fe9b61a

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngc_flowctrl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ status_code_t ngc_flowctrl (uint32_t o_label, char *line, uint_fast8_t *pos, boo
689689
else if((g65_return = !!grbl.on_macro_return))
690690
ngc_flowctrl_unwind_stack(stack[stack_idx].file);
691691

692-
if(ngc_eval_expression(line, pos, &value) == Status_OK) {
692+
if(read_real_value(line, pos, &value) == Status_OK) {
693693
ngc_named_param_set("_value", value);
694694
ngc_named_param_set("_value_returned", 1.0f);
695695
} else

0 commit comments

Comments
 (0)