From fed62e1642cc4fd1109ba246a979b7d887bc532a Mon Sep 17 00:00:00 2001 From: nvt-se Date: Tue, 27 May 2008 14:22:55 +0000 Subject: [PATCH] added timeout --- platform/msb430/dev/sd/sd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/msb430/dev/sd/sd.c b/platform/msb430/dev/sd/sd.c index d26dcd568..5a9e35ca4 100644 --- a/platform/msb430/dev/sd/sd.c +++ b/platform/msb430/dev/sd/sd.c @@ -47,9 +47,9 @@ Berlin, 2007 * @brief MMC-/SD-Card library * * @author Michael Baar - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * - * $Id: sd.c,v 1.5 2008/05/27 14:05:09 nvt-se Exp $ + * $Id: sd.c,v 1.6 2008/05/27 14:22:55 nvt-se Exp $ * * Initialisation and basic functions for read and write access */ @@ -645,7 +645,7 @@ _sd_send_cmd(const uint8_t command, if ((data & 0x80) == 0) { goto _sd_send_cmd_response; } - } while (i); + } while (i--); goto sd_send_cmd_fail;