diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-13 09:21:25 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-13 09:21:25 +0000 |
commit | 0c1ba01812cf1509a6c92a08fffb0ee670ce5a2e (patch) | |
tree | 311ba1ccec1c2ce0afb5f6d40262f58644badb7a | |
parent | 46c0e6255e9d3013ce6308cd1fa494d6550fa80e (diff) | |
download | ChibiOS-0c1ba01812cf1509a6c92a08fffb0ee670ce5a2e.tar.gz ChibiOS-0c1ba01812cf1509a6c92a08fffb0ee670ce5a2e.tar.bz2 ChibiOS-0c1ba01812cf1509a6c92a08fffb0ee670ce5a2e.zip |
Added brackets as suggested in #523.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7167 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/src/sdc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/src/sdc.c b/os/hal/src/sdc.c index 988efd1e7..ef96c6a9b 100644 --- a/os/hal/src/sdc.c +++ b/os/hal/src/sdc.c @@ -222,10 +222,12 @@ bool sdcConnect(SDCDriver *sdcp) { sdcp->cardmode = SDC_MODE_CARDTYPE_MMC;
else
#endif /* SDC_MMC_SUPPORT */
+ {
sdcp->cardmode = SDC_MODE_CARDTYPE_SDV11;
- /* Reset error flag illegal command.*/
- sdc_lld_send_cmd_none(sdcp, MMCSD_CMD_GO_IDLE_STATE, 0);
+ /* Reset error flag illegal command.*/
+ sdc_lld_send_cmd_none(sdcp, MMCSD_CMD_GO_IDLE_STATE, 0);
+ }
}
#if SDC_MMC_SUPPORT
|