auto-sync

This commit is contained in:
rusEfi 2016-09-13 00:13:57 -04:00
parent 8d194c262d
commit 7f58f4c493
1 changed files with 6 additions and 2 deletions

View File

@ -116,6 +116,9 @@ extern LoggingWithStorage sharedLogger;
// todo: make these macro? kind of a penny optimization if compiler is not smart to inline
void seTurnPinHigh(InjectorOutputPin *output) {
if (output->currentLogicValue == 1) {
if (output->cancelNextTurningInjectorOff) {
// how comes AutoTest.testFordAspire ends up here?
} else {
/**
* #299
* this is another kind of overlap which happens in case of a small duty cycle after a large duty cycle
@ -123,6 +126,7 @@ void seTurnPinHigh(InjectorOutputPin *output) {
output->cancelNextTurningInjectorOff = true;
return;
}
}
#if FUEL_MATH_EXTREME_LOGGING || defined(__DOXYGEN__)
const char * w = output->currentLogicValue == true ? "err" : "";
scheduleMsg(&sharedLogger, "^ %spin=%s eventIndex %d %d", w, output->name,