Skip to content

Commit

Permalink
fixup! cpu/sam0: remove bitfield usage in sdhc driver
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Laduranty <[email protected]>
  • Loading branch information
dylad committed Jun 14, 2024
1 parent 5999a6c commit fa40dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/sam0_common/sam0_sdhc/sdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static bool sdio_test_type(sdhc_state_t *state);

static bool _card_detect(sdhc_state_t *state)
{
return !!(state->dev->PSR.reg & SDHC_PSR_CARDINS);
return state->dev->PSR.reg & SDHC_PSR_CARDINS;
}

static inline void _clock_sdcard(sdhc_state_t *state, bool on)
Expand Down

0 comments on commit fa40dc1

Please sign in to comment.