auto-sync

This commit is contained in:
rusEfi 2016-09-13 09:01:44 -04:00
parent 7f58f4c493
commit 6916fe1fc2
1 changed files with 16 additions and 16 deletions

View File

@ -115,18 +115,18 @@ 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) { // if (output->cancelNextTurningInjectorOff) {
// how comes AutoTest.testFordAspire ends up here? // // how comes AutoTest.testFordAspire ends up here?
} else { // } 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" : "";
scheduleMsg(&sharedLogger, "^ %spin=%s eventIndex %d %d", w, output->name, scheduleMsg(&sharedLogger, "^ %spin=%s eventIndex %d %d", w, output->name,
@ -134,8 +134,8 @@ void seTurnPinHigh(InjectorOutputPin *output) {
#endif /* FUEL_MATH_EXTREME_LOGGING */ #endif /* FUEL_MATH_EXTREME_LOGGING */
#if EFI_UNIT_TEST #if EFI_UNIT_TEST
if (output->currentLogicValue == 1) // if (output->currentLogicValue == 1)
firmwareError("Already high"); // firmwareError("Already high");
#endif #endif
turnPinHigh(output); turnPinHigh(output);
@ -163,8 +163,8 @@ void seTurnPinLow(InjectorOutputPin *output) {
#endif /* FUEL_MATH_EXTREME_LOGGING */ #endif /* FUEL_MATH_EXTREME_LOGGING */
#if EFI_UNIT_TEST #if EFI_UNIT_TEST
if (output->currentLogicValue == 0) // if (output->currentLogicValue == 0)
firmwareError("Already low"); // firmwareError("Already low");
#endif #endif
turnPinLow(output); turnPinLow(output);