From f94ce228a723a57e1eb8f922839957dc0e31fc88 Mon Sep 17 00:00:00 2001 From: Andrzej Puzdrowski Date: Mon, 26 Jun 2017 15:32:18 +0200 Subject: [PATCH] nrf5 spi_api - coding style enhancement --- targets/TARGET_NORDIC/TARGET_NRF5/spi_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/spi_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/spi_api.c index df0e2827b2..1639279f7c 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5/spi_api.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5/spi_api.c @@ -305,9 +305,9 @@ void spi_init(spi_t *obj, p_spi_info->initialized = true; p_spi_info->master = true; p_spi_info->flag.busy = false; - #if DEVICE_SPI_ASYNCH +#if DEVICE_SPI_ASYNCH p_spi_info->handler = 0; - #endif +#endif SPI_IDX(obj) = i; NVIC_SetVector(spi_handler_desc[i].IRQn, spi_handler_desc[i].vector); return;