From f7cda1c0c426fe1ccdfd63a54f2293cca44a5ce1 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Sun, 26 Aug 2012 02:42:18 -0500 Subject: [PATCH] RFM22b: No need to initialize the SPI. Done already. --- flight/PiOS/Common/pios_rfm22b.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/flight/PiOS/Common/pios_rfm22b.c b/flight/PiOS/Common/pios_rfm22b.c index 654fdace5..60e5cd0f4 100644 --- a/flight/PiOS/Common/pios_rfm22b.c +++ b/flight/PiOS/Common/pios_rfm22b.c @@ -443,11 +443,6 @@ int32_t PIOS_RFM22B_Init(uint32_t *rfm22b_id, const struct pios_rfm22b_cfg *cfg) rfm22b_dev->supv_timer = PIOS_RFM22B_SUPERVISOR_TIMEOUT; rfm22b_dev->resets = 0; - // Initialize our SPI interface - if (PIOS_SPI_Init(&PIOS_RFM22_SPI_PORT, cfg->spi_cfg)) { - PIOS_Assert(0); - } - // Initialize the external interrupt. PIOS_EXTI_Init(cfg->exti_cfg);