Skip to content

Commit

Permalink
fix: Prevent TF lockup on radios using SDIO (#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc authored Aug 19, 2022
1 parent 34dadf7 commit 6648dff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions radio/src/targets/common/arm/stm32/sdio_sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ OPTIMIZE("O0") SD_Error SD_PowerON(void)
response = SDIO_GetResponse(SDIO_RESP1);
validvoltage = (((response >> 31) == 1) ? 1 : 0);
count++;
SDIO_ClearFlag(SDIO_FLAG_CCRCFAIL);
}
if (count >= SD_MAX_VOLT_TRIAL) {
errorstatus = SD_INVALID_VOLTRANGE;
Expand Down

0 comments on commit 6648dff

Please sign in to comment.