Skip to content

Commit d3e66a8

Browse files
committed
sd.c: always pause clock after sdcard check
When the sdcard is inserted, the sdcard check runs into the retry loop. In that case, the clock was not paused, which could lead to touch issues.
1 parent 46c8c7b commit d3e66a8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ customers cannot upgrade their bootloader, its changes are recorded separately.
1515
- Add API call to fetch multiple xpubs at once
1616
- Add the option for the simulator to write its memory to file.
1717

18+
### 9.23.2
19+
- Improve touch sensor reliability when the sdcard is inserted
20+
1821
### 9.23.1
1922
- EVM: add HyperEVM (HYPE) and SONIC (S) to known networks
2023
- U2F: fix macos/safari macos/firefox support

src/sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ bool sd_card_inserted(void)
315315
return true;
316316
#else
317317
sd_mmc_err_t err = sd_mmc_check(0);
318-
sd_mmc_pause_clock();
319318
/* If initialization is ongoing, wait up to 1 second for it to initialize */
320319
if (err == SD_MMC_INIT_ONGOING) {
321320
for (int i = 0; i < 10; ++i) {
@@ -326,6 +325,7 @@ bool sd_card_inserted(void)
326325
}
327326
}
328327
}
328+
sd_mmc_pause_clock();
329329
#if !defined(NDEBUG)
330330
switch (err) {
331331
case SD_MMC_OK:

0 commit comments

Comments
 (0)