don't show a yellow indicator if there isn't actually a problem (#5076)

This commit is contained in:
Matthew Kennedy 2023-02-14 03:38:24 -08:00 committed by GitHub
parent 67ce3a0540
commit 2edd6b5556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ static percent_t directPwmValue = NAN;
bool EtbController::init(etb_function_e function, DcMotor *motor, pid_s *pidParameters, const ValueProvider3D* pedalMap, bool hasPedal) {
if (function == ETB_None) {
// if not configured, don't init.
etbErrorCode = (int8_t)TpsState::NotConfigured;
etbErrorCode = (int8_t)TpsState::None;
return false;
}
@ -172,7 +172,7 @@ bool EtbController::init(etb_function_e function, DcMotor *motor, pid_s *pidPara
if (isEtbMode()) {
// We don't need to init throttles, so nothing to do here.
if (!hasPedal) {
etbErrorCode = (int8_t)TpsState::PpsError;
etbErrorCode = (int8_t)TpsState::None;
return false;
}