From d26a2ceef28e5b9fbb6579706f0cc65344e26466 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Fri, 26 Jun 2015 15:18:08 +0100 Subject: [PATCH] SPRacingF3 - Allow SoftSerial1 (CH5/6) to be used when Sonar is used (CH7/8). --- src/main/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/main.c b/src/main/main.c index f245b13c3f..185ee0f0ff 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -311,6 +311,13 @@ void init(void) } #endif +#if defined(SPRACINGF3) && defined(SONAR) && defined(USE_SOFTSERIAL2) + if (feature(FEATURE_SONAR) && feature(FEATURE_SOFTSERIAL)) { + serialRemovePort(SERIAL_PORT_SOFTSERIAL2); + } +#endif + + #ifdef USE_I2C #if defined(NAZE) if (hardwareRevision != NAZE32_SP) {