rename error state to fault
This commit is contained in:
+3
-1
@@ -68,6 +68,8 @@ void MainLoop::setup() noexcept
|
||||
for (uint8_t i = 0; i < 3; i++) {
|
||||
motors[i].commitMoveImmediately();
|
||||
}
|
||||
|
||||
StateMachine::getInstance().setState(StateMachine::STATE::IDLING);
|
||||
}
|
||||
|
||||
void MainLoop::update() noexcept
|
||||
@@ -108,7 +110,7 @@ void MainLoop::update() noexcept
|
||||
|
||||
}
|
||||
break;
|
||||
case StateMachine::STATE::ERROR:
|
||||
case StateMachine::STATE::FAULT:
|
||||
default:
|
||||
// Freeze in place until error clears or device reset
|
||||
yield();
|
||||
|
||||
Reference in New Issue
Block a user