simplification in gcode.c also thanks to etienne

This commit is contained in:
Simen Svale Skogsrud 2011-02-25 15:02:55 +01:00
parent d914089e91
commit 74dcf58c5c

View File

@ -229,11 +229,7 @@ uint8_t gc_execute_line(char *line) {
if (gc.status_code) { return(gc.status_code); }
// Update spindle state
if (gc.spindle_direction) {
spindle_run(gc.spindle_direction, gc.spindle_speed);
} else {
spindle_stop();
}
spindle_run(gc.spindle_direction, gc.spindle_speed);
// Perform any physical actions
switch (next_action) {