Save some flash on radios w/o software controllable serial port power supply pins.

This commit is contained in:
rotorman
2022-04-20 14:02:19 +02:00
parent 5682286173
commit 7e0eadd743
+2
View File
@@ -331,9 +331,11 @@ void serialInit(uint8_t port_nr, int mode)
if (port->uart && port->uart->init)
state->usart_ctx = port->uart->init(&params);
#if defined(SWSERIALPOWER)
// Set power on/off
if (port_nr < SP_VCP)
serialSetPowerState(port_nr);
#endif
}
// Update callbacks once the port is setup