diff --git a/gcode.c b/gcode.c index 35a3f4a..8f63008 100644 --- a/gcode.c +++ b/gcode.c @@ -156,6 +156,7 @@ uint8_t gc_execute_line(char *line) { read_double(line, &char_counter, &value); if(line[char_counter] != 0) { return(GCSTATUS_UNSUPPORTED_STATEMENT); } settings_store_setting(p, value); + return(gc.status_code); } /* We'll handle this as g-code. First: parse all statements */