simplification in gcode.c also thanks to etienne
This commit is contained in:
parent
d914089e91
commit
74dcf58c5c
6
gcode.c
6
gcode.c
@ -229,11 +229,7 @@ uint8_t gc_execute_line(char *line) {
|
|||||||
if (gc.status_code) { return(gc.status_code); }
|
if (gc.status_code) { return(gc.status_code); }
|
||||||
|
|
||||||
// Update spindle state
|
// Update spindle state
|
||||||
if (gc.spindle_direction) {
|
spindle_run(gc.spindle_direction, gc.spindle_speed);
|
||||||
spindle_run(gc.spindle_direction, gc.spindle_speed);
|
|
||||||
} else {
|
|
||||||
spindle_stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Perform any physical actions
|
// Perform any physical actions
|
||||||
switch (next_action) {
|
switch (next_action) {
|
||||||
|
Loading…
Reference in New Issue
Block a user