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
This commit is contained in:
blckmn 2017-01-17 13:39:25 +11:00
parent 704b12f297
commit f541a10a5c
1 changed files with 4 additions and 0 deletions

View File

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