X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsystem%2FSimpleArbiterP.nc;h=30f185f2e99926602161b29f6652717f326437a4;hb=16b439ec074f0817dcbc2c93051b1592029ec48b;hp=ac4c839e40c6660866a555f1ad0e346a39229b67;hpb=590009b1e92cd2324b391e8e5397f605c8a7026b;p=tinyos-2.x.git diff --git a/tos/system/SimpleArbiterP.nc b/tos/system/SimpleArbiterP.nc index ac4c839e..30f185f2 100644 --- a/tos/system/SimpleArbiterP.nc +++ b/tos/system/SimpleArbiterP.nc @@ -99,6 +99,7 @@ implementation { atomic { if(state == RES_BUSY && resId == id) { if(call Queue.isEmpty() == FALSE) { + resId = NO_RES; reqResId = call Queue.dequeue(); state = RES_GRANTING; post grantedTask();