X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2Fhtml%2Ftutorial%2Flesson7.html;h=c23d97df57fb3134f60e1f40e09cc640b22ace4d;hb=83022549511a90a4d4ac0018a028578a53486700;hp=59673856e485d36d447d452e4616374b76ea612f;hpb=d2a411bd0cd54812e5c9d31dd098bb41337fc1f6;p=tinyos-2.x.git 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(); } }