Skip to content

Commit

Permalink
Merge pull request #805 from ali1234/sd_detect
Browse files Browse the repository at this point in the history
STM32: Use defined SD_DETECT GPIO
  • Loading branch information
Daft-Freak authored Mar 1, 2023
2 parents 3f96f95 + c15961d commit c47e2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 32blit-stm32/Src/32blit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void blit_tick() {
}

bool blit_sd_detected() {
return gpio::read(GPIOD, GPIO_PIN_11);
return gpio::read(SD_DETECT_GPIO_Port, SD_DETECT_Pin);
}

bool blit_sd_mounted() {
Expand Down

0 comments on commit c47e2a9

Please sign in to comment.