From 4a556f8a5eb68644ec0629bf5b792aacb82cdb55 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 29 Jun 2011 08:36:29 +0000 Subject: Fixed SDC driver when initializing high capacity cards. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3095 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/sdc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os/hal') diff --git a/os/hal/src/sdc.c b/os/hal/src/sdc.c index 283a0ee75..59d7db005 100644 --- a/os/hal/src/sdc.c +++ b/os/hal/src/sdc.c @@ -184,7 +184,7 @@ bool_t sdcConnect(SDCDriver *sdcp) { /* V2.0 cards detection.*/ if (!sdc_lld_send_cmd_short_crc(sdcp, SDC_CMD_SEND_IF_COND, - SDC_CMD8_PATTERN, resp)) + SDC_CMD8_PATTERN, resp)) { sdcp->cardmode = SDC_MODE_CARDTYPE_SDV20; /* Voltage verification.*/ if (((resp[0] >> 8) & 0xF) != 1) @@ -192,6 +192,7 @@ bool_t sdcConnect(SDCDriver *sdcp) { if (sdc_lld_send_cmd_short_crc(sdcp, SDC_CMD_APP_CMD, 0, resp) || SDC_R1_ERROR(resp[0])) goto failed; + } else { #if SDC_MMC_SUPPORT /* MMC or SD V1.1 detection.*/ -- cgit v1.2.3