From 58f92ae30d4d9b8f6482624862306175359dd454 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 5 May 2019 16:43:07 -0400 Subject: [PATCH] the future is now :) --- firmware/config/engines/custom_engine.cpp | 3 +-- firmware/hw_layer/servo.cpp | 13 ++----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/firmware/config/engines/custom_engine.cpp b/firmware/config/engines/custom_engine.cpp index 6629f3079d..67c4f4755a 100644 --- a/firmware/config/engines/custom_engine.cpp +++ b/firmware/config/engines/custom_engine.cpp @@ -50,8 +50,7 @@ static void toggleTestAndScheduleNext() { * https://github.com/rusefi/rusefi/issues/557 common rail / direct injection scheduling control test */ void runSchedulingPrecisionTestIfNeeded(void) { - if (engineConfiguration->test557pin == GPIO_UNASSIGNED || - engineConfiguration->test557pin == GPIOA_0) { + if (engineConfiguration->test557pin == GPIO_UNASSIGNED) { return; } diff --git a/firmware/hw_layer/servo.cpp b/firmware/hw_layer/servo.cpp index aa02227bc9..b3f3500463 100644 --- a/firmware/hw_layer/servo.cpp +++ b/firmware/hw_layer/servo.cpp @@ -18,9 +18,6 @@ #include "servo.h" #include "pin_repository.h" -// todo: remove this hack once we have next incompatible configuration change -#define TEMP_FOR_COMPATIBILITY GPIOA_0 - EXTERN_ENGINE; THD_WORKING_AREA(seThreadStack, UTILITY_THREAD_STACK_SIZE); @@ -31,8 +28,7 @@ static int countServos() { int result = 0; for (int i = 0; i < SERVO_COUNT; i++) { - if (engineConfiguration->servoOutputPins[i] != GPIO_UNASSIGNED && - engineConfiguration->servoOutputPins[i] != TEMP_FOR_COMPATIBILITY) { + if (engineConfiguration->servoOutputPins[i] != GPIO_UNASSIGNED) { result++; } } @@ -71,16 +67,11 @@ static msg_t seThread(void *arg) { } void initServo(void) { - for (int i = 0; i < SERVO_COUNT; i ++) { brain_pin_e p = engineConfiguration->servoOutputPins[i]; - if (p != TEMP_FOR_COMPATIBILITY) { - pins[i].initPin("servo", p); - } + pins[i].initPin("servo", p); } - - chThdCreateStatic(seThreadStack, sizeof(seThreadStack), NORMALPRIO, (tfunc_t)(void*) seThread, NULL); } #endif /* EFI_SERVO */