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