Set all the global options the PW unit test depends on. (#1176)
This commit is contained in:
parent
63a1a1c4f5
commit
b8c14c3d48
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue