From f511b50014b952debd5b078021c78e3a45fe2c0c Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 27 Jun 2017 16:32:30 +0200 Subject: [PATCH] stm32-l053r8-em9304: random hack to work around SPI bug --- port/stm32-l053r8-em9304/port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/port/stm32-l053r8-em9304/port.c b/port/stm32-l053r8-em9304/port.c index 50b986a68..cd4b1193b 100644 --- a/port/stm32-l053r8-em9304/port.c +++ b/port/stm32-l053r8-em9304/port.c @@ -228,8 +228,8 @@ static void hal_spi_em9304_process(btstack_data_source_t *ds, btstack_data_sourc switch (hal_spi_em9304_state){ case SPI_EM9304_IDLE: // RDY && space in RX Buffer - // if (hal_spi_em9304_rdy() && hal_spi_em9304_rx_free_bytes() && hal_uart_dma_rx_len){ - if (hal_spi_em9304_rdy() && hal_spi_em9304_rx_free_bytes()){ + if (hal_spi_em9304_rdy() && hal_spi_em9304_rx_free_bytes() && hal_uart_dma_rx_len){ + // if (hal_spi_em9304_rdy() && hal_spi_em9304_rx_free_bytes()){ // chip select HAL_GPIO_WritePin(SPI1_CSN_GPIO_Port, SPI1_CSN_Pin, GPIO_PIN_RESET);