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:
parent
99a296821a
commit
e14347bf47
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue