From 79461226a1789a4ec1855fe122aa9677eb2e2a26 Mon Sep 17 00:00:00 2001 From: zyren <585668@qq.com> Date: Thu, 3 Aug 2023 10:43:47 +0800 Subject: [PATCH] fix(tx16): Reduce likehood of TX16s seeming being unresponsive on startup (#3655) Reduce the number of retries of SD_MAX_VOLT_TRIAL to solve the problem that the card owner cannot enter the system during the boot process of TX16S. --- radio/src/targets/common/arm/stm32/sdio_sd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/radio/src/targets/common/arm/stm32/sdio_sd.c b/radio/src/targets/common/arm/stm32/sdio_sd.c index c7925f9fdf3..66464a3027a 100644 --- a/radio/src/targets/common/arm/stm32/sdio_sd.c +++ b/radio/src/targets/common/arm/stm32/sdio_sd.c @@ -60,7 +60,12 @@ #define SD_STD_CAPACITY ((uint32_t)0x00000000) #define SD_CHECK_PATTERN ((uint32_t)0x000001AA) -#define SD_MAX_VOLT_TRIAL ((uint32_t)0x0000FFFF) +#if defined(RADIO_TX16S) + #define SD_MAX_VOLT_TRIAL ((uint32_t)0x00000834) +#else + #define SD_MAX_VOLT_TRIAL ((uint32_t)0x0000FFFF) +#endif + #define SD_ALLZERO ((uint32_t)0x00000000) #define SD_WIDE_BUS_SUPPORT ((uint32_t)0x00040000)