diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index b84ff6499c..8ee83aac26 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -170,12 +170,6 @@ bool EtbController::init(dc_function_e function, DcMotor *motor, pid_s *pidParam } if (!Sensor::isRedundant(m_positionSensor)) { - firmwareError( - ObdCode::OBD_TPS_Configuration, - "Use of electronic throttle requires %s to be redundant.", - Sensor::getSensorName(m_positionSensor) - ); - etbErrorCode = (int8_t)TpsState::Redundancy; return false; } diff --git a/unit_tests/tests/actuators/test_etb.cpp b/unit_tests/tests/actuators/test_etb.cpp index a2133670db..bf6d4f02ad 100644 --- a/unit_tests/tests/actuators/test_etb.cpp +++ b/unit_tests/tests/actuators/test_etb.cpp @@ -192,7 +192,7 @@ TEST(etb, initializationNotRedundantTps) { Sensor::setMockValue(SensorType::Tps1Primary, 0); Sensor::setMockValue(SensorType::Tps1, 0.0f, false); - EXPECT_FATAL_ERROR(dut.init(DC_Throttle1, nullptr, nullptr, nullptr)); + ASSERT_FALSE(dut.init(DC_Throttle1, nullptr, nullptr, nullptr)); } TEST(etb, initializationNotRedundantPedal) { @@ -246,7 +246,7 @@ TEST(etb, initializationNoThrottles) { Sensor::setMockValue(SensorType::Tps1Primary, 0); Sensor::setMockValue(SensorType::Tps1, 0.0f, false); - EXPECT_FATAL_ERROR(initElectronicThrottle()); + initElectronicThrottle(); } TEST(etb, idlePlumbing) {