Use first MSP port opened for now, instead of the last one.
This works with the default configuration and when also enabling MSP on soft serial 1/2 while leaving the uart1 scenario at it's default.
This commit is contained in:
parent
a2531722f3
commit
02a8e993f5
|
@ -306,8 +306,8 @@ static void openAllMSPSerialPorts(serialConfig_t *serialConfig)
|
|||
} while (!port);
|
||||
|
||||
// XXX delete this when adding support for MSP on more than one port.
|
||||
if (port) {
|
||||
mspPort = port; // just use the last one opened for now, the least specific serial port scenario will in for now
|
||||
if (port && !mspPort) {
|
||||
mspPort = port; // just use the first one opened for now
|
||||
}
|
||||
|
||||
} while (port);
|
||||
|
|
Loading…
Reference in New Issue