fixing at least unit tests
This commit is contained in:
parent
eee9a5c867
commit
d890830e93
|
@ -275,6 +275,7 @@ void turnOnTriggerInputPins(Logging *sharedLogger) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void stopTriggerInputPins(void) {
|
void stopTriggerInputPins(void) {
|
||||||
|
#if EFI_PROD_CODE
|
||||||
for (int i = 0; i < TRIGGER_SUPPORTED_CHANNELS; i++) {
|
for (int i = 0; i < TRIGGER_SUPPORTED_CHANNELS; i++) {
|
||||||
if (CONFIGB(triggerInputPins)[i]
|
if (CONFIGB(triggerInputPins)[i]
|
||||||
!= activeConfiguration.bc.triggerInputPins[i]) {
|
!= activeConfiguration.bc.triggerInputPins[i]) {
|
||||||
|
@ -284,9 +285,11 @@ void stopTriggerInputPins(void) {
|
||||||
if (engineConfiguration->camInput != activeConfiguration.camInput) {
|
if (engineConfiguration->camInput != activeConfiguration.camInput) {
|
||||||
turnOffTriggerInputPin(activeConfiguration.camInput);
|
turnOffTriggerInputPin(activeConfiguration.camInput);
|
||||||
}
|
}
|
||||||
|
#endif /* EFI_PROD_CODE */
|
||||||
}
|
}
|
||||||
|
|
||||||
void startTriggerInputPins(void) {
|
void startTriggerInputPins(void) {
|
||||||
|
#if EFI_PROD_CODE
|
||||||
for (int i = 0; i < TRIGGER_SUPPORTED_CHANNELS; i++) {
|
for (int i = 0; i < TRIGGER_SUPPORTED_CHANNELS; i++) {
|
||||||
if (CONFIGB(triggerInputPins)[i]
|
if (CONFIGB(triggerInputPins)[i]
|
||||||
!= activeConfiguration.bc.triggerInputPins[i]) {
|
!= activeConfiguration.bc.triggerInputPins[i]) {
|
||||||
|
@ -300,6 +303,7 @@ void startTriggerInputPins(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
setPrimaryChannel(CONFIGB(triggerInputPins)[0]);
|
setPrimaryChannel(CONFIGB(triggerInputPins)[0]);
|
||||||
|
#endif /* EFI_PROD_CODE */
|
||||||
}
|
}
|
||||||
|
|
||||||
void applyNewTriggerInputPins(void) {
|
void applyNewTriggerInputPins(void) {
|
||||||
|
|
Loading…
Reference in New Issue