From 02a8e993f51ddc5ab279166fb585f90f1a32f0d0 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Thu, 22 May 2014 14:13:02 +0100 Subject: [PATCH] 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. --- src/serial_msp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serial_msp.c b/src/serial_msp.c index ed4c28965..2f0e5a059 100755 --- a/src/serial_msp.c +++ b/src/serial_msp.c @@ -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);