From: janhauer Date: Tue, 19 May 2009 16:53:15 +0000 (+0000) Subject: fixed a wrong parameter check in MLME_START.request X-Git-Tag: rc_6_tinyos_2_1_1~381 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=8bdf12e8f4255c53d8121586c39099e9f62a4ad8;p=tinyos-2.x.git fixed a wrong parameter check in MLME_START.request --- diff --git a/tos/lib/mac/tkn154/BeaconTransmitP.nc b/tos/lib/mac/tkn154/BeaconTransmitP.nc index 63bdedbc..252ed5ae 100644 --- a/tos/lib/mac/tkn154/BeaconTransmitP.nc +++ b/tos/lib/mac/tkn154/BeaconTransmitP.nc @@ -214,7 +214,7 @@ implementation status = IEEE154_INVALID_PARAMETER; else if (startTime && !call IsTrackingBeacons.getNow()) status = IEEE154_TRACKING_OFF; - else if (startTime && 0xFF000000) + else if (startTime & 0xFF000000) status = IEEE154_INVALID_PARAMETER; else if (m_requestBitmap & (REQUEST_CONFIRM_PENDING | REQUEST_UPDATE_SF)) status = IEEE154_TRANSACTION_OVERFLOW;