Fixed homing cycle hanging after locating switches.
This commit is contained in:
parent
00fd09189d
commit
5844172af1
@ -217,6 +217,8 @@ void mc_go_home()
|
||||
if (sys.abort) {
|
||||
sys.state = STATE_ALARM; // Homing routine did not complete.
|
||||
return;
|
||||
} else {
|
||||
sys.state = STATE_IDLE; // Otherwise, homed and zero out machine position.
|
||||
}
|
||||
|
||||
// The machine should now be homed and machine zero has been located. Upon completion,
|
||||
@ -242,7 +244,7 @@ void mc_go_home()
|
||||
|
||||
// If hard limits feature enabled, re-enable hard limits interrupt after homing cycle.
|
||||
if (bit_istrue(settings.flags,BITFLAG_HARD_LIMIT_ENABLE)) { PCICR |= (1 << LIMIT_INT); }
|
||||
sys.state = STATE_IDLE; // Finished!
|
||||
// Finished!
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user