From 01a43393df7ceb5f9073d3092608c55df3f410ad Mon Sep 17 00:00:00 2001 From: scipio Date: Wed, 28 Oct 2009 16:18:44 +0000 Subject: [PATCH] Remove warning on data variable in RssiResource.granted(). --- tos/chips/cc2420/control/CC2420ControlP.nc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tos/chips/cc2420/control/CC2420ControlP.nc b/tos/chips/cc2420/control/CC2420ControlP.nc index 3b144a63..c6fdd8c2 100644 --- a/tos/chips/cc2420/control/CC2420ControlP.nc +++ b/tos/chips/cc2420/control/CC2420ControlP.nc @@ -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(); -- 2.39.2