From f541a10a5cd908d4395f07a21e448bfddd62cfa5 Mon Sep 17 00:00:00 2001 From: blckmn Date: Tue, 17 Jan 2017 13:39:25 +1100 Subject: [PATCH] Added define for turning on MSP on first UART when option set for custom build. command line for custom firmware: make NAZE OPTIONS=USE_MSP_UART --- src/main/fc/config.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/fc/config.c b/src/main/fc/config.c index 10d5be8de..0cf1ae9f1 100755 --- a/src/main/fc/config.c +++ b/src/main/fc/config.c @@ -452,6 +452,10 @@ void resetSerialConfig(serialConfig_t *serialConfig) } serialConfig->portConfigs[0].functionMask = FUNCTION_MSP; +#if defined(USE_VCP) && defined(USE_MSP_UART) + // This allows MSP connection via USART & VCP so the board can be reconfigured. + serialConfig->portConfigs[1].functionMask = FUNCTION_MSP; +#endif } void resetRcControlsConfig(rcControlsConfig_t *rcControlsConfig)