Skip to content

Commit

Permalink
Fix Serial USB COM port (#12911)
Browse files Browse the repository at this point in the history
  • Loading branch information
freasy committed Jun 22, 2023
1 parent 2eb378c commit 0503311
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/io/serial.c
Expand Up @@ -496,6 +496,11 @@ void serialInit(bool softserialEnabled, serialPortIdentifier_e serialPortToDisab
else if (!softserialEnabled &&
((softSerialPinConfig()->ioTagTx[SOFTSERIAL1] || serialPortUsageList[index].identifier == SERIAL_PORT_SOFTSERIAL1) ||
(softSerialPinConfig()->ioTagTx[SOFTSERIAL2] || serialPortUsageList[index].identifier == SERIAL_PORT_SOFTSERIAL2)))
#else
else if (
(serialPortUsageList[index].identifier == SERIAL_PORT_SOFTSERIAL1) ||
(serialPortUsageList[index].identifier == SERIAL_PORT_SOFTSERIAL2)
)
#endif
{
serialPortUsageList[index].identifier = SERIAL_PORT_NONE;
Expand Down

0 comments on commit 0503311

Please sign in to comment.