aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/ARMCM3-STM32F103-FATFS-GCC/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/ARMCM3-STM32F103-FATFS-GCC/main.c b/demos/ARMCM3-STM32F103-FATFS-GCC/main.c
index ef06c6614..5fd6737a6 100644
--- a/demos/ARMCM3-STM32F103-FATFS-GCC/main.c
+++ b/demos/ARMCM3-STM32F103-FATFS-GCC/main.c
@@ -58,7 +58,7 @@ static const MMCConfig mmc_cfg = {};
*/
static bool_t mmc_is_inserted(void) {
- return (bool_t)palReadPad(IOPORT3, GPIOC_MMCCP);
+ return palReadPad(IOPORT3, GPIOC_MMCCP);
}
/*
@@ -66,7 +66,7 @@ static bool_t mmc_is_inserted(void) {
*/
static bool_t mmc_is_protected(void) {
- return (bool_t)palReadPad(IOPORT3, GPIOC_MMCWP);
+ return !palReadPad(IOPORT3, GPIOC_MMCWP);
}
/**