X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsystem%2FArbiterP.nc;h=b07f975dc4e5b2b2e762a90c020aff7772ec43cf;hb=16b439ec074f0817dcbc2c93051b1592029ec48b;hp=f7b2fcedab33f221b78ada452ab1a10c46efed2f;hpb=590009b1e92cd2324b391e8e5397f605c8a7026b;p=tinyos-2.x.git diff --git a/tos/system/ArbiterP.nc b/tos/system/ArbiterP.nc index f7b2fced..b07f975d 100644 --- a/tos/system/ArbiterP.nc +++ b/tos/system/ArbiterP.nc @@ -110,6 +110,7 @@ implementation { if(state == RES_BUSY && resId == id) { if(call Queue.isEmpty() == FALSE) { reqResId = call Queue.dequeue(); + resId = NO_RES; state = RES_GRANTING; post grantedTask(); call ResourceConfigure.unconfigure[id]();