Reset the error code for reusal of logic state machines

pull/83/head
D.R.racer 2021-08-11 16:26:48 +02:00 committed by DRracer
parent 9ba116e06e
commit ccefe32ba1
1 changed files with 3 additions and 1 deletions

View File

@ -80,8 +80,10 @@ bool CommandBase::CheckToolIndex(uint8_t index) {
if (index >= config::toolCount) { if (index >= config::toolCount) {
error = ErrorCode::INVALID_TOOL; error = ErrorCode::INVALID_TOOL;
return false; return false;
} } else {
error = ErrorCode::OK;
return true; return true;
}
} }
} // namespace logic } // namespace logic