mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Only index into the configurable baud rate list when needed.
This commit is contained in:
parent
dca984ff88
commit
a156d915f4
10 changed files with 11 additions and 13 deletions
|
@ -236,7 +236,7 @@ serialPort_t *openSerialPort(
|
|||
serialPortIdentifier_e identifier,
|
||||
serialPortFunction_e function,
|
||||
serialReceiveCallbackPtr callback,
|
||||
baudRate_e baudRateIndex,
|
||||
uint32_t baudRate,
|
||||
portMode_t mode,
|
||||
serialInversion_e inversion)
|
||||
{
|
||||
|
@ -248,8 +248,6 @@ serialPort_t *openSerialPort(
|
|||
|
||||
serialPort_t *serialPort = NULL;
|
||||
|
||||
uint32_t baudRate = baudRates[baudRateIndex];
|
||||
|
||||
switch(identifier) {
|
||||
#ifdef USE_VCP
|
||||
case SERIAL_PORT_USB_VCP:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue