1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-16 08:29:15 +01:00

LP-72 Fix for receiverPort / Hott

This commit is contained in:
Laurent Lalanne 2016-05-26 19:58:38 +02:00
parent f5e5ee18bf
commit e776441c49

View File

@ -589,7 +589,7 @@ void PIOS_Board_Init(void)
PIOS_Board_configure_exbus(&pios_usart_exbus_flexi_cfg); PIOS_Board_configure_exbus(&pios_usart_exbus_flexi_cfg);
#endif /* PIOS_INCLUDE_EXBUS */ #endif /* PIOS_INCLUDE_EXBUS */
break; break;
} /* hwsettings_rm_flexiport */ } /* hwsettings_spk2_flexiport */
/* Moved this here to allow binding on flexiport */ /* Moved this here to allow binding on flexiport */
#if defined(PIOS_INCLUDE_FLASH) #if defined(PIOS_INCLUDE_FLASH)
@ -768,7 +768,7 @@ void PIOS_Board_Init(void)
case HWSETTINGS_SPK2_MAINPORT_OSDHK: case HWSETTINGS_SPK2_MAINPORT_OSDHK:
PIOS_Board_configure_com(&pios_usart_hkosd_main_cfg, PIOS_COM_HKOSD_RX_BUF_LEN, PIOS_COM_HKOSD_TX_BUF_LEN, &pios_usart_com_driver, &pios_com_hkosd_id); PIOS_Board_configure_com(&pios_usart_hkosd_main_cfg, PIOS_COM_HKOSD_RX_BUF_LEN, PIOS_COM_HKOSD_TX_BUF_LEN, &pios_usart_com_driver, &pios_com_hkosd_id);
break; break;
} /* hwsettings_rm_mainport */ } /* hwsettings_spk2_mainport */
/* Initalize the RFM22B radio COM device. */ /* Initalize the RFM22B radio COM device. */
@ -933,7 +933,7 @@ void PIOS_Board_Init(void)
case HWSETTINGS_SPK2_RCVRPORT_HOTTSUMH: case HWSETTINGS_SPK2_RCVRPORT_HOTTSUMH:
#if defined(PIOS_INCLUDE_HOTT) #if defined(PIOS_INCLUDE_HOTT)
PIOS_Board_configure_hott(&pios_usart_hott_rcvr_cfg, PIOS_Board_configure_hott(&pios_usart_hott_rcvr_cfg,
hwsettings_flexiport == HWSETTINGS_SPK2_FLEXIPORT_HOTTSUMD ? PIOS_HOTT_PROTO_SUMD : PIOS_HOTT_PROTO_SUMH); hwsettings_rcvrport == HWSETTINGS_SPK2_RCVRPORT_HOTTSUMD ? PIOS_HOTT_PROTO_SUMD : PIOS_HOTT_PROTO_SUMH);
#endif /* PIOS_INCLUDE_HOTT */ #endif /* PIOS_INCLUDE_HOTT */
break; break;