From 52ad0008dc29b61cca03608ab913b6d1942d8f41 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 31 Mar 2010 11:55:04 +0000 Subject: [PATCH] Bugfix --- cpu/msp430/watchdog.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cpu/msp430/watchdog.c b/cpu/msp430/watchdog.c index acff7a03c..efe47ec2e 100644 --- a/cpu/msp430/watchdog.c +++ b/cpu/msp430/watchdog.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: watchdog.c,v 1.6 2010/03/30 23:02:23 adamdunkels Exp $ + * @(#)$Id: watchdog.c,v 1.7 2010/03/31 11:55:04 adamdunkels Exp $ */ #include #include @@ -39,11 +39,12 @@ static int stopped = 0; static void printchar(char c) { + /* Transmit the data. */ + TXBUF1 = c; + /* Loop until the transmission buffer is available. */ while((IFG2 & UTXIFG1) == 0); - /* Transmit the data. */ - TXBUF1 = c; } /*---------------------------------------------------------------------------*/ static void