home(a);
}
// check if on_halt (eg kill)
- if(THEKERNEL->is_halted()) return;
+ if(THEKERNEL->is_halted()) break;
}
}else {
}
// check if on_halt (eg kill)
- if(THEKERNEL->is_halted()) return;
+ if(THEKERNEL->is_halted()){
+ THEKERNEL->streams->printf("Homing cycle aborted by kill\n");
+ return;
+ }
if(home_all) {
// for deltas this may be important rather than setting each individually
while ( get_temperature() < target_temperature ) {
THEKERNEL->call_event(ON_IDLE, this);
// check if ON_HALT was called (usually by kill button)
- if(THEKERNEL->is_halted() || this->target_temperature == UNDEFINED) break;
+ if(THEKERNEL->is_halted() || this->target_temperature == UNDEFINED) {
+ THEKERNEL->streams->printf("Wait on temperature aborted by kill\n");
+ break;
+ }
}
this->waiting = false;
}
unsigned int debounce = 0;
while(true) {
THEKERNEL->call_event(ON_IDLE);
+ if(THEKERNEL->is_halted()){
+ // aborted by kill
+ return false;
+ }
+
// if no stepper is moving, moves are finished and there was no touch
if( !STEPPER[Z_AXIS]->is_moving() && (!is_delta || (!STEPPER[Y_AXIS]->is_moving() && !STEPPER[Z_AXIS]->is_moving())) ) {
return false;