diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/ata_mmc.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index 01b8a6f029..16d06584c5 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c | |||
@@ -816,7 +816,7 @@ void mmc_enable_monitoring(bool on) | |||
816 | 816 | ||
817 | bool mmc_detect(void) | 817 | bool mmc_detect(void) |
818 | { | 818 | { |
819 | return adc_read(ADC_MMC_SWITCH) < 0x200 ? true : false; | 819 | return (adc_read(ADC_MMC_SWITCH) < 0x200); |
820 | } | 820 | } |
821 | 821 | ||
822 | bool mmc_touched(void) | 822 | bool mmc_touched(void) |
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index 8d0dc042b9..99bf668ec4 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c | |||
@@ -359,7 +359,7 @@ static int sd_init_card(const int drive) | |||
359 | sd_parse_csd(&card_info[drive]); | 359 | sd_parse_csd(&card_info[drive]); |
360 | 360 | ||
361 | #if defined(HAVE_MULTIDRIVE) | 361 | #if defined(HAVE_MULTIDRIVE) |
362 | hs_card = (card_info[drive].speed == 50000000) ? true : false; | 362 | hs_card = (card_info[drive].speed == 50000000); |
363 | #endif | 363 | #endif |
364 | 364 | ||
365 | /* Boost MCICLK to operating speed */ | 365 | /* Boost MCICLK to operating speed */ |