Merge pull request #2144 from blckmn/patch

Added define for turning on MSP on first UART for custom build
This commit is contained in:
Anders Höglund 2017-01-20 18:08:18 +01:00 committed by GitHub
commit a1aa44945c
1 changed files with 4 additions and 0 deletions

View File

@ -453,6 +453,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)