1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 07:15:18 +03:00

Disable softserial port 2 on Naze and Olimexino targets when SONAR is

enabled without RX_PARALLEL_PWM because they use the same pins.
This commit is contained in:
Dominic Clifton 2014-09-13 13:08:24 +01:00
parent 99a296821a
commit e14347bf47

View file

@ -251,6 +251,13 @@ serialPortSearchResult_t *findNextSerialPort(serialPortFunction_e function, cons
)) {
continue;
}
#if (defined(NAZE) || defined(OLIMEXINO)) && defined(SONAR)
if (!feature(FEATURE_RX_PARALLEL_PWM) && (serialPortConstraint->identifier == SERIAL_PORT_SOFTSERIAL2)) {
continue;
}
#endif
#endif
if (functionConstraint->requiredSerialPortFeatures != SPF_NONE) {