From 55252f65b2a444692ff1b2673b32ec1cf2b205c0 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 14 Nov 2009 19:57:56 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1298 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARMCM3-STM32F103-FATFS-GCC/main.c | 4 ++-- 1 file 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); } /**