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

RFM22b: No need to initialize the SPI. Done already.

This commit is contained in:
James Cotton 2012-08-26 02:42:18 -05:00
parent 477385ca25
commit f7cda1c0c4

View File

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