added support for limit switches and homing action
This commit is contained in:
parent
9c8c259153
commit
d5d6298de3
11 changed files with 158 additions and 8 deletions
2
gcode.c
2
gcode.c
|
|
@ -231,7 +231,7 @@ uint8_t gc_execute_line(char *line) {
|
|||
|
||||
// Perform any physical actions
|
||||
switch (next_action) {
|
||||
case NEXT_ACTION_GO_HOME: mc_go_home(); break;
|
||||
case NEXT_ACTION_GO_HOME: mc_go_home(); clear_vector(gc.position); break;
|
||||
case NEXT_ACTION_DWELL: mc_dwell(trunc(p*1000)); break;
|
||||
case NEXT_ACTION_DEFAULT:
|
||||
switch (gc.motion_mode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue