diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-01 21:21:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-01 21:21:54 +0000 |
commit | d7aefb08f7012f785b9cd623caae9e9cbfc6d5ac (patch) | |
tree | eca6daff7f722dd85194b0011ccb44a896a2f574 /nuttx/drivers | |
parent | f5776dec9fdc3b655b7f424340d613664a65e2ab (diff) | |
download | px4-firmware-d7aefb08f7012f785b9cd623caae9e9cbfc6d5ac.tar.gz px4-firmware-d7aefb08f7012f785b9cd623caae9e9cbfc6d5ac.tar.bz2 px4-firmware-d7aefb08f7012f785b9cd623caae9e9cbfc6d5ac.zip |
Fixes for warnings from Freddie Chopin
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5294 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/mmcsd/mmcsd_spi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/drivers/mmcsd/mmcsd_spi.c b/nuttx/drivers/mmcsd/mmcsd_spi.c index 7dbadc55f..39b570581 100644 --- a/nuttx/drivers/mmcsd/mmcsd_spi.c +++ b/nuttx/drivers/mmcsd/mmcsd_spi.c @@ -508,7 +508,7 @@ static uint32_t mmcsd_sendcmd(FAR struct mmcsd_slot_s *slot, } break; - /* The R3 response is 5 bytes long */ + /* The R3 response is 5 bytes long. The first byte is identical to R1. */ case MMCSD_CMDRESP_R3: { @@ -520,8 +520,10 @@ static uint32_t mmcsd_sendcmd(FAR struct mmcsd_slot_s *slot, fvdbg("CMD%d[%08x] R1=%02x OCR=%08x\n", cmd->cmd & 0x3f, arg, response, slot->ocr); } + break; + + /* The R7 response is 5 bytes long. The first byte is identical to R1. */ - /* The R7 response is 5 bytes long */ case MMCSD_CMDRESP_R7: default: { |