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:
Dominic Clifton 2014-05-22 14:13:02 +01:00
parent a2531722f3
commit 02a8e993f5
1 changed files with 2 additions and 2 deletions

View File

@ -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);