]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - doc/html/tutorial/lesson7.html
Changed to reflect standard TinyOS coding style
[tinyos-2.x.git] / doc / html / tutorial / lesson7.html
index 59673856e485d36d447d452e4616374b76ea612f..c23d97df57fb3134f60e1f40e09cc640b22ace4d 100644 (file)
@@ -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();
     }
   }