Reset the error code for reusal of logic state machines
parent
9ba116e06e
commit
ccefe32ba1
|
|
@ -80,8 +80,10 @@ bool CommandBase::CheckToolIndex(uint8_t index) {
|
|||
if (index >= config::toolCount) {
|
||||
error = ErrorCode::INVALID_TOOL;
|
||||
return false;
|
||||
} else {
|
||||
error = ErrorCode::OK;
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace logic
|
||||
|
|
|
|||
Loading…
Reference in New Issue