From 8c0b60099fec5204d6695cf30e77b51342837b92 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Fri, 29 Jul 2011 22:59:50 -0400 Subject: [PATCH] rcvr: don't init spektrum and sbus rcvrs twice --- flight/CopterControl/System/pios_board.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/flight/CopterControl/System/pios_board.c b/flight/CopterControl/System/pios_board.c index 5717ab2b7..ee3deaf5c 100644 --- a/flight/CopterControl/System/pios_board.c +++ b/flight/CopterControl/System/pios_board.c @@ -959,11 +959,6 @@ void PIOS_Board_Init(void) { if (PIOS_SBUS_Init(&pios_sbus_id, &pios_sbus_cfg, &pios_usart_com_driver, pios_usart_sbus_id)) { PIOS_Assert(0); } - - uint32_t pios_rcvr_id; - if (PIOS_RCVR_Init(&pios_rcvr_id, &pios_sbus_rcvr_driver, pios_sbus_id)) { - PIOS_Assert(0); - } } #endif /* PIOS_INCLUDE_SBUS */ break; @@ -997,11 +992,6 @@ void PIOS_Board_Init(void) { if (PIOS_SPEKTRUM_Init(&pios_spektrum_id, &pios_spektrum_main_cfg, &pios_usart_com_driver, pios_usart_spektrum_id, false)) { PIOS_Assert(0); } - - uint32_t pios_rcvr_id; - if (PIOS_RCVR_Init(&pios_rcvr_id, &pios_spektrum_rcvr_driver, pios_spektrum_id)) { - PIOS_Assert(0); - } } #endif /* PIOS_INCLUDE_SPEKTRUM */ break; @@ -1064,11 +1054,6 @@ void PIOS_Board_Init(void) { if (PIOS_SPEKTRUM_Init(&pios_spektrum_id, &pios_spektrum_flexi_cfg, &pios_usart_com_driver, pios_usart_spektrum_id, false)) { PIOS_Assert(0); } - - uint32_t pios_rcvr_id; - if (PIOS_RCVR_Init(&pios_rcvr_id, &pios_spektrum_rcvr_driver, pios_spektrum_id)) { - PIOS_Assert(0); - } } #endif /* PIOS_INCLUDE_SPEKTRUM */ break;