Skip to content

Commit a4f30a8

Browse files
committed
Set value of halfSync in MAP sensor unit tests
1 parent bdf5c70 commit a4f30a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_sensors/test_map_sampling.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ static void test_canUseCycleAverge(void) {
2929
TEST_ASSERT_TRUE(canUseCycleAverage(current, page2));
3030

3131
current.hasSync = false;
32+
current.halfSync = false;
3233
TEST_ASSERT_FALSE(canUseCycleAverage(current, page2));
3334
current.hasSync = true;
3435

@@ -279,6 +280,7 @@ static void test_eventAverageMAPReading_fallback_instantaneous(void) {
279280
setup_event_average(test_data);
280281

281282
test_data.current.hasSync = false;
283+
test_data.current.halfSync = false;
282284
test_data.sensorReadings.mapADC = 0x1234;
283285
test_data.sensorReadings.emapADC = 0x1234;
284286

0 commit comments

Comments
 (0)