reducing variable name conflict
This commit is contained in:
parent
b81c47550d
commit
92feca9a01
|
@ -102,9 +102,11 @@ void printToStream(MemoryStream *stream, const char *fmt, va_list ap) {
|
|||
chvprintf((BaseSequentialStream *) stream, fmt, ap);
|
||||
stream->buffer[stream->eos] = 0;
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
int unitTestWarningCounter = 0;
|
||||
|
||||
#endif /* EFI_SIMULATOR || EFI_PROD_CODE */
|
||||
|
||||
int warningCounter = 0;
|
||||
|
||||
/**
|
||||
* OBD_PCM_Processor_Fault is the general error code for now
|
||||
|
@ -142,7 +144,7 @@ bool warning(obd_code_e code, const char *fmt, ...) {
|
|||
append(&logger, DELIMETER);
|
||||
scheduleLogging(&logger);
|
||||
#else
|
||||
warningCounter++;
|
||||
unitTestWarningCounter++;
|
||||
printf("unit_test_warning: ");
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
extern int timeNow;
|
||||
extern EnginePins enginePins;
|
||||
extern EventQueue schedulingQueue;
|
||||
extern int warningCounter;
|
||||
extern int unitTestWarningCounter;
|
||||
|
||||
EngineTestHelper::EngineTestHelper(engine_type_e engineType) : engine (&persistentConfig) {
|
||||
ec = &persistentConfig.engineConfiguration;
|
||||
warningCounter = 0;
|
||||
unitTestWarningCounter = 0;
|
||||
|
||||
schedulingQueue.clear();
|
||||
enginePins.reset();
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
extern int timeNow;
|
||||
extern float unitTestValue;
|
||||
extern float testMafValue;
|
||||
extern int warningCounter;
|
||||
extern int unitTestWarningCounter;
|
||||
extern bool printTriggerDebug;
|
||||
extern float actualSynchGap;
|
||||
|
||||
|
@ -1240,7 +1240,7 @@ void testMissedSpark299(void) {
|
|||
engineConfiguration->isIgnitionEnabled = true;
|
||||
engineConfiguration->isInjectionEnabled = false;
|
||||
|
||||
assertEqualsM("warningCounter#0", 4, warningCounter);
|
||||
assertEqualsM("warningCounter#0", 4, unitTestWarningCounter);
|
||||
|
||||
timeNow += MS2US(20);
|
||||
eth.firePrimaryTriggerRise();
|
||||
|
@ -1311,5 +1311,5 @@ void testMissedSpark299(void) {
|
|||
eth.firePrimaryTriggerFall();
|
||||
schedulingQueue.executeAll(timeNow);
|
||||
|
||||
assertEqualsM("warningCounter#1", 5, warningCounter);
|
||||
assertEqualsM("warningCounter#1", 5, unitTestWarningCounter);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue