X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fcc2420%2Fcontrol%2FCC2420ControlP.nc;h=c6fdd8c2bc7fb70ef4da70353df6fdf33ea13795;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=760eafa8d2ecd3ae8f39ac68264b52c833be0eb1;hpb=e1517a7e2e9d9bfc020f91b209bf40026592e993;p=tinyos-2.x.git diff --git a/tos/chips/cc2420/control/CC2420ControlP.nc b/tos/chips/cc2420/control/CC2420ControlP.nc index 760eafa8..c6fdd8c2 100644 --- a/tos/chips/cc2420/control/CC2420ControlP.nc +++ b/tos/chips/cc2420/control/CC2420ControlP.nc @@ -38,7 +38,7 @@ #include "Timer.h" -module CC2420ControlP { +module CC2420ControlP @safe() { provides interface Init; provides interface Resource; @@ -393,7 +393,7 @@ implementation { } event void RssiResource.granted() { - uint16_t data; + uint16_t data = 0; call CSN.clr(); call RSSI.read(&data); call CSN.set();