refactoring

This commit is contained in:
rusefi 2019-12-23 21:58:06 -05:00
parent 537a95a9b4
commit cf0b12b203
2 changed files with 5 additions and 0 deletions

View File

@ -68,7 +68,10 @@ public:
AuxActor auxValves[AUX_DIGITAL_VALVE_COUNT][2];
#if EFI_UNIT_TEST
bool needTdcCallback = true;
#endif /* EFI_UNIT_TEST */
/**
* if 2nd TPS is not configured we do not run 2nd ETB
*/

View File

@ -296,9 +296,11 @@ static char rpmBuffer[_MAX_FILLER];
* digital sniffer.
*/
static void onTdcCallback(Engine *engine) {
#if EFI_UNIT_TEST
if (!engine->needTdcCallback) {
return;
}
#endif /* EFI_UNIT_TEST */
EXPAND_Engine;
itoa10(rpmBuffer, GET_RPM());
#if EFI_ENGINE_SNIFFER