1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Temporarily swap serial ports while debugging

This commit is contained in:
James Cotton 2012-01-04 22:19:13 -06:00
parent d655f3d723
commit 5ee9c8008e
2 changed files with 6 additions and 3 deletions

View File

@ -512,8 +512,11 @@ static void updateTelemetryStats()
*/
static void updateSettings()
{
if (telemetryPort) {
PIOS_COM_ChangeBaud(telemetryPort, 115200);
return;
// Retrieve settings
uint8_t speed;
HwSettingsTelemetrySpeedGet(&speed);

View File

@ -1552,7 +1552,7 @@ void PIOS_Board_Init(void) {
#if defined(PIOS_INCLUDE_GPS)
uint32_t pios_usart_gps_id;
if (PIOS_USART_Init(&pios_usart_gps_id, &pios_usart_gps_cfg)) {
if (PIOS_USART_Init(&pios_usart_gps_id, &pios_usart_telem_main_cfg)) {
PIOS_Assert(0);
}
@ -1593,7 +1593,7 @@ void PIOS_Board_Init(void) {
#if defined(PIOS_INCLUDE_COM_TELEM)
{ /* Eventually add switch for this port function */
uint32_t pios_usart_telem_rf_id;
if (PIOS_USART_Init(&pios_usart_telem_rf_id, &pios_usart_telem_main_cfg)) {
if (PIOS_USART_Init(&pios_usart_telem_rf_id, &pios_usart_gps_cfg)) {
PIOS_Assert(0);
}