fixing at least unit tests

This commit is contained in:
rusefi 2019-04-12 08:33:40 -04:00
parent 65e46ac70f
commit 9c87b13ac7
1 changed files with 4 additions and 0 deletions

View File

@ -275,6 +275,7 @@ void turnOnTriggerInputPins(Logging *sharedLogger) {
}
void stopTriggerInputPins(void) {
#if EFI_PROD_CODE
for (int i = 0; i < TRIGGER_SUPPORTED_CHANNELS; i++) {
if (CONFIGB(triggerInputPins)[i]
!= activeConfiguration.bc.triggerInputPins[i]) {
@ -284,9 +285,11 @@ void stopTriggerInputPins(void) {
if (engineConfiguration->camInput != activeConfiguration.camInput) {
turnOffTriggerInputPin(activeConfiguration.camInput);
}
#endif /* EFI_PROD_CODE */
}
void startTriggerInputPins(void) {
#if EFI_PROD_CODE
for (int i = 0; i < TRIGGER_SUPPORTED_CHANNELS; i++) {
if (CONFIGB(triggerInputPins)[i]
!= activeConfiguration.bc.triggerInputPins[i]) {
@ -300,6 +303,7 @@ void startTriggerInputPins(void) {
}
setPrimaryChannel(CONFIGB(triggerInputPins)[0]);
#endif /* EFI_PROD_CODE */
}
void applyNewTriggerInputPins(void) {