the future is now :)
This commit is contained in:
parent
f9bc42b8c6
commit
58f92ae30d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue