sensor checker wasn't checking sensors

This commit is contained in:
Matthew Kennedy 2023-04-11 13:47:30 -07:00
parent b2e804e0ee
commit 323d61d90b
3 changed files with 6 additions and 1 deletions

View File

@ -28,4 +28,7 @@ Release template (copy/paste this for new release):
## Unreleased
### Fixed
- Sensor checker wasn't checking sensors
### For older changelog entries prior to fork from rusEFI, see CHANGELOG.rusefi.md

View File

@ -148,7 +148,7 @@ void SensorChecker::onSlowCallback() {
// TODO: also inhibit checking if we just did a flash burn, since that blocks the ECU for a few seconds.
bool shouldCheck = m_ignitionIsOn && m_timeSinceIgnOff.hasElapsedSec(5);
m_analogSensorsShouldWork = shouldCheck;
if (shouldCheck) {
if (!shouldCheck) {
return;
}

View File

@ -48,6 +48,7 @@ TEST(etb, integrated) {
}
extern int timeNowUs;
extern WarningCodeState unitTestWarningCodeState;
TEST(etb, intermittentTps) {
EngineTestHelper eth(TEST_ENGINE); // we have a destructor so cannot move EngineTestHelper into utility method
@ -91,6 +92,7 @@ TEST(etb, intermittentTps) {
etb->update();
EXPECT_NE(0, etb->etbErrorCode);
EXPECT_EQ(3, unitTestWarningCodeState.recentWarnings.getCount()) << "intermittentTps";
}
TEST(etb, intermittentPps) {