X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftutorials%2FPacketParrot%2FPacketParrotP.nc;h=3b27d99ad2de26bf95b421f9b2e94c967d7b6816;hb=83022549511a90a4d4ac0018a028578a53486700;hp=926dca3d652fa13537a18f322a3dc8688933467f;hpb=d2a411bd0cd54812e5c9d31dd098bb41337fc1f6;p=tinyos-2.x.git 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(); } }