]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/CoordRealignmentP.nc
Fixed some issues with the orphan scan / coordinator realignment - this was reported...
[tinyos-2.x.git] / tos / lib / mac / tkn154 / CoordRealignmentP.nc
index 3287adb6a8c7c467556a8a0bbe1f237a7533eb77..03563636b28fb5152fbdf76a23d61eed42db328e 100644 (file)
@@ -114,7 +114,7 @@ implementation
     dstAddress.extendedAddress = OrphanAddress;
     if (!AssociatedMember)
       txStatus = IEEE154_SUCCESS;
-    else if (m_busy || (txFrame = newRealignmentFrame(ORPHAN_RESPONSE, &dstAddress)) != NULL)
+    else if (m_busy || (txFrame = newRealignmentFrame(ORPHAN_RESPONSE, &dstAddress)) == NULL)
       txStatus = IEEE154_TRANSACTION_OVERFLOW;
     else {
       m_busy = TRUE;