cosmetic changes

This commit is contained in:
Samuel Sadok
2019-09-27 18:01:38 +02:00
parent 8ce66c6ec7
commit 82e8cd64fb
6 changed files with 16 additions and 20 deletions
+3 -1
View File
@@ -348,8 +348,10 @@ bool Axis::run_homing() {
Controller::ControlMode_t stored_control_mode = controller_.config_.control_mode;
Controller::InputMode_t stored_input_mode = controller_.config_.input_mode;
// TODO: theoretically this check should be inside the update loop,
// otherwise someone could disable the endstop while homing is in progress.
if (!min_endstop_.config_.enabled) {
return error_ |= ERROR_MIN_ENDSTOP_PRESSED, false; // TODO: define new error code
return error_ |= ERROR_HOMING_WITHOUT_ENDSTOP, false;
}
controller_.config_.control_mode = Controller::CTRL_MODE_VELOCITY_CONTROL;