Fix feature check (all features must be set to use port)
This commit is contained in:
parent
ec3b83682b
commit
4a23814532
|
@ -268,10 +268,8 @@ serialPortSearchResult_t *findNextSerialPort(serialPortFunction_e function, cons
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (functionConstraint->requiredSerialPortFeatures != SPF_NONE) {
|
if ((serialPortConstraint->feature & functionConstraint->requiredSerialPortFeatures) != functionConstraint->requiredSerialPortFeatures) {
|
||||||
if (!(serialPortConstraint->feature & functionConstraint->requiredSerialPortFeatures)) {
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (functionConstraint->minBaudRate < serialPortConstraint->minBaudRate || functionConstraint->maxBaudRate > serialPortConstraint->maxBaudRate) {
|
if (functionConstraint->minBaudRate < serialPortConstraint->minBaudRate || functionConstraint->maxBaudRate > serialPortConstraint->maxBaudRate) {
|
||||||
|
|
Loading…
Reference in New Issue