From: prabal Date: Sat, 21 Apr 2007 03:37:33 +0000 (+0000) Subject: Changed to reflect standard TinyOS coding style X-Git-Tag: tinyos/2.0.1~7 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=83022549511a90a4d4ac0018a028578a53486700 Changed to reflect standard TinyOS coding style --- diff --git a/apps/tutorials/PacketParrot/PacketParrotP.nc b/apps/tutorials/PacketParrot/PacketParrotP.nc index 926dca3d..3b27d99a 100644 --- a/apps/tutorials/PacketParrot/PacketParrotP.nc +++ b/apps/tutorials/PacketParrot/PacketParrotP.nc @@ -84,10 +84,9 @@ implementation { call Leds.led1On(); } else { - error_t e; - do { - e = call LogWrite.erase(); - } while (e != SUCCESS); + if (call LogWrite.erase() != SUCCESS) { + // Handle error. + } call Leds.led0On(); } } diff --git a/doc/html/tutorial/lesson7.html b/doc/html/tutorial/lesson7.html index 59673856..c23d97df 100644 --- a/doc/html/tutorial/lesson7.html +++ b/doc/html/tutorial/lesson7.html @@ -574,10 +574,9 @@ synchronization, so the log is erased: call Leds.led1On(); } else { - error_t e; - do { - e = call LogWrite.erase(); - } while (e != SUCCESS); + if (call LogWrite.erase() != SUCCESS) { + // Handle error. + } call Leds.led0On(); } }