Merge pull request #5140 from DieHertz/rx-only-softserial
Allow RX-only softserial
This commit is contained in:
commit
3050b491df
|
@ -457,11 +457,13 @@ void serialInit(bool softserialEnabled, serialPortIdentifier_e serialPortToDisab
|
|||
|
||||
if ((serialPortUsageList[index].identifier == SERIAL_PORT_SOFTSERIAL1
|
||||
#ifdef USE_SOFTSERIAL1
|
||||
&& !(softserialEnabled && serialPinConfig()->ioTagTx[RESOURCE_SOFT_OFFSET + SOFTSERIAL1])
|
||||
&& !(softserialEnabled && (serialPinConfig()->ioTagTx[RESOURCE_SOFT_OFFSET + SOFTSERIAL1] ||
|
||||
serialPinConfig()->ioTagRx[RESOURCE_SOFT_OFFSET + SOFTSERIAL1]))
|
||||
#endif
|
||||
) || (serialPortUsageList[index].identifier == SERIAL_PORT_SOFTSERIAL2
|
||||
#ifdef USE_SOFTSERIAL2
|
||||
&& !(softserialEnabled && serialPinConfig()->ioTagTx[RESOURCE_SOFT_OFFSET + SOFTSERIAL2])
|
||||
&& !(softserialEnabled && (serialPinConfig()->ioTagTx[RESOURCE_SOFT_OFFSET + SOFTSERIAL2] ||
|
||||
serialPinConfig()->ioTagRx[RESOURCE_SOFT_OFFSET + SOFTSERIAL2]))
|
||||
#endif
|
||||
)) {
|
||||
serialPortUsageList[index].identifier = SERIAL_PORT_NONE;
|
||||
|
|
Loading…
Reference in New Issue