the future is now :)

This commit is contained in:
rusefi 2019-05-05 16:43:07 -04:00
parent f9bc42b8c6
commit 58f92ae30d
2 changed files with 3 additions and 13 deletions

View File

@ -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;
}

View File

@ -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 */