Line | Branch | Decision | Exec | Source |
---|---|---|---|---|
1 | #include "pch.h" | |||
2 | #include "Lps25Sensor.h" | |||
3 | ||||
4 | static Lps25 device; | |||
5 | static Lps25Sensor sensor(device); | |||
6 | ||||
7 | 2 | void initBaro() { | ||
8 | // If there's already an external (analog) baro sensor configured, | |||
9 | // don't configure the internal one. | |||
10 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
|
1/2✗ Decision 'true' not taken.
✓ Decision 'false' taken 2 times.
|
2 | if (Sensor::hasSensor(SensorType::BarometricPressure)) { |
11 | ✗ | return; | ||
12 | } | |||
13 | ||||
14 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
|
1/2✗ Decision 'true' not taken.
✓ Decision 'false' taken 2 times.
|
2 | if (device.init(engineConfiguration->lps25BaroSensorScl, engineConfiguration->lps25BaroSensorSda)) { |
15 | ✗ | sensor.Register(); | ||
16 | } | |||
17 | } | |||
18 | ||||
19 | ✗ | void baroLps25Update() { | ||
20 | #if EFI_PROD_CODE | |||
21 | if (device.hasInit()) { | |||
22 | sensor.update(); | |||
23 | } | |||
24 | #endif // EFI_PROD_CODE | |||
25 | ✗ | } | ||
26 |