From 1a42d85dfe5bc7b009f057784249d54d0c82de0f Mon Sep 17 00:00:00 2001 From: Huaqi Fang <578567190@qq.com> Date: Thu, 11 Jun 2020 08:52:06 +0800 Subject: [PATCH] bsp/nuclei: clean up unused code in drv_spi.c Signed-off-by: Huaqi Fang <578567190@qq.com> --- bsp/nuclei/libraries/gd32vf103/HAL_Drivers/drv_spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bsp/nuclei/libraries/gd32vf103/HAL_Drivers/drv_spi.c b/bsp/nuclei/libraries/gd32vf103/HAL_Drivers/drv_spi.c index 870b097710..bcdaacb47b 100644 --- a/bsp/nuclei/libraries/gd32vf103/HAL_Drivers/drv_spi.c +++ b/bsp/nuclei/libraries/gd32vf103/HAL_Drivers/drv_spi.c @@ -210,8 +210,6 @@ rt_size_t gd32_spi_transmit(rt_uint32_t spi_periph, const void *send_buf, void * } idx ++; } - // Wait for transmission complete - // while(SET == spi_i2s_flag_get(spi_periph, SPI_FLAG_TRANS)); return length; }