Set all the global options the PW unit test depends on. (#1176)

This commit is contained in:
tx_haggis 2024-02-09 15:49:09 -06:00 committed by GitHub
parent 63a1a1c4f5
commit b8c14c3d48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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());