]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/at45db/HplAt45dbByteC.nc
resource releases were missing
[tinyos-2.x.git] / tos / chips / at45db / HplAt45dbByteC.nc
index 35e85e12096fbedfad6fc761b91508f13c9cf82d..c83251c74ba84c20c986e2e518b04cd664d20b2c 100644 (file)
@@ -204,11 +204,13 @@ implementation
       {
        bool cstatus = call HplAt45dbByte.getCompareStatus();
        call HplAt45dbByte.deselect();
+       call Resource.release();
        signal HplAt45db.waitCompareDone(cstatus);
       }
     else
       {
        call HplAt45dbByte.deselect();
+       call Resource.release();
        signal HplAt45db.waitIdleDone();
       }
   }