clean state machine level error writing

This commit is contained in:
Oskar Weigl
2018-05-10 14:42:35 -07:00
parent 0d07c71f95
commit 7188e2a1c2
2 changed files with 27 additions and 34 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ bool Encoder::run_index_search() {
// continue until the index is found
return !index_found_;
});
return axis_->error_ != Axis::ERROR_NONE;
return true;
}
// @brief Turns the motor in one direction for a bit and then in the other