Technical debt: ENUM_32_BITS #3874

poking the bear
This commit is contained in:
rusefi 2023-06-01 02:11:27 -04:00 committed by rusefillc
parent 633274055b
commit 99b4ea78d9
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ struct TriggerExportHelper
static TriggerExportHelper exportHelper;
class AllTriggersFixture : public ::testing::TestWithParam<trigger_type_e> {
class AllTriggersFixture : public ::testing::TestWithParam<int> {
};
INSTANTIATE_TEST_SUITE_P(
@ -41,7 +41,7 @@ INSTANTIATE_TEST_SUITE_P(
AllTriggersFixture,
// Test all triggers from the first valid trigger thru the last
// (Skip index 0, that's custom toothed wheel which is covered by others)
::testing::Range((trigger_type_e)TEST_FROM_TRIGGER_ID, (trigger_type_e)TEST_TO_TRIGGER_ID)
::testing::Range((int)TEST_FROM_TRIGGER_ID, (int)TEST_TO_TRIGGER_ID)
);
extern bool printTriggerDebug;
@ -52,7 +52,7 @@ TEST_P(AllTriggersFixture, TestTrigger) {
//printTriggerDebug = true;
//printTriggerTrace = true;
auto tt = GetParam();
trigger_type_e tt = (trigger_type_e)GetParam();
auto fp = exportHelper.fp;
printf("Exporting %s\r\n", getTrigger_type_e(tt));

View File

@ -108,7 +108,7 @@ static void doTestFasterEngineSpinningUp60_2(int startUpDelayMs, int rpm1, int e
// turn on FasterEngineSpinUp mode
engineConfiguration->isFasterEngineSpinUpEnabled = true;
setupSimpleTestEngineWithMaf(&eth, IM_SEQUENTIAL, TT_TOOTHED_WHEEL_60_2);
setupSimpleTestEngineWithMaf(&eth, IM_SEQUENTIAL, trigger_type_e::TT_TOOTHED_WHEEL_60_2);
eth.moveTimeForwardMs(startUpDelayMs);
// fire 30 tooth rise/fall signals