aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c')
-rw-r--r--os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c b/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c
index cbf380740..c516df7a1 100644
--- a/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c
+++ b/os/hal/boards/OLIMEX_STM32_E407_REV_D/board.c
@@ -77,10 +77,10 @@ void __early_init(void) {
* @brief SDC card detection.
*/
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
- static bool last_status = false;
-
- if (blkIsTransferring(sdcp))
- return last_status;
+ static bool last_status = false;
+
+ if (blkIsTransferring(sdcp))
+ return last_status;
return last_status = (bool)palReadPad(GPIOC, GPIOC_SD_D3);
}
@@ -88,8 +88,8 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
* @brief SDC card write protection detection.
*/
bool sdc_lld_is_write_protected(SDCDriver *sdcp) {
-
- (void)sdcp;
+
+ (void)sdcp;
return false;
}
#endif /* HAL_USE_SDC */