refactoring - reducing GPIO complexity

This commit is contained in:
rusefi 2017-04-21 16:38:30 -04:00
parent 03b66eaa4f
commit 47e7835050
1 changed files with 2 additions and 3 deletions

View File

@ -58,8 +58,7 @@ void turnPinHigh(NamedOutputPin *output) {
#endif /* EFI_DEFAILED_LOGGING */
// turn the output level ACTIVE
// todo: this XOR should go inside the setOutputPinValue method
doSetOutputPinValue2(output, true);
output->setValue(true);
// sleep for the needed duration
#if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__)
@ -78,7 +77,7 @@ void turnPinHigh(NamedOutputPin *output) {
void turnPinLow(NamedOutputPin *output) {
efiAssertVoid(output!=NULL, "NULL turnPinLow");
// turn off the output
doSetOutputPinValue2(output, false);
output->setValue(false);
#if EFI_DEFAILED_LOGGING || defined(__DOXYGEN__)
systime_t after = hTimeNow();