GCC Code Coverage Report


Directory: ./
File: firmware/controllers/sensors/sensor_checker.h
Date: 2025-10-03 00:57:22
Coverage Exec Excl Total
Lines: 100.0% 2 0 2
Functions: 100.0% 1 0 1
Branches: -% 0 0 0
Decisions: -% 0 - 0

Line Branch Decision Exec Source
1 #pragma once
2
3 #define TS_ENUM_OFFSET 1
4
5 // TODO: this name is now probably wrong, since it checks injectors/ignition too
6 struct SensorChecker : public EngineModule {
7 public:
8 void onSlowCallback() override;
9 void onIgnitionStateChanged(bool ignitionOn) override;
10
11 208 bool analogSensorsShouldWork() const {
12 208 return m_analogSensorsShouldWork;
13 }
14
15 private:
16 bool m_ignitionIsOn = false;
17 Timer m_timeSinceIgnOff;
18
19 bool m_analogSensorsShouldWork = false;
20 };
21