From b8c14c3d4850e0bd674cb665397859918ab8a5c1 Mon Sep 17 00:00:00 2001 From: tx_haggis <13982343+adbancroft@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:49:09 -0600 Subject: [PATCH] Set all the global options the PW unit test depends on. (#1176) --- test/test_fuel/test_PW.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_fuel/test_PW.cpp b/test/test_fuel/test_PW.cpp index 309e5cc2..6070adec 100644 --- a/test/test_fuel/test_PW.cpp +++ b/test/test_fuel/test_PW.cpp @@ -161,6 +161,8 @@ void test_PW_Limit_Long_Revolution(void) { revolutionTime = 100000UL; //600 rpm, below 915rpm cutover point configPage2.dutyLim = 90; + configPage2.strokes = TWO_STROKE; + currentStatus.nSquirts = 1U; //Duty limit of 90% for 100,000uS should give 90,000, but as this would overflow the PW value, this should default to UINT16 Max TEST_ASSERT_EQUAL(UINT16_MAX, calculatePWLimit());