[Tinyos Core WG] FW: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/lplDummyLplC.nc, 1.2, 1.3

Janos Sallai sallai at isis.vanderbilt.edu
Thu Jun 19 10:40:29 PDT 2008


Jan,

There was a discussion about this warning at a recent core wg telecon.
The problem is that the cc2420 stack wires in a dummy LPL implementation
by default, and thus the compiler does not complain when the user wants
to call commands of the LowPowerListening interface (since there's an
empty implementation there). This can be very misleading, because the
user may think that he's using LPL, but in fact it's not.

The easiest way to get around the issue was adding the warning. This is,
for sure, far from the best solution, but I believe it should be in
there for the 2.1 release.

Janos

-----Original Message-----
From: tinyos-2-commits-bounces at millennium.berkeley.edu
[mailto:tinyos-2-commits-bounces at millennium.berkeley.edu] On Behalf Of
Jan Beutel
Sent: Thursday, June 19, 2008 2:26 AM
To: tinyos-2-commits at mail.millennium.berkeley.edu
Subject: [Tinyos-2-commits] CVS:
tinyos-2.x/tos/chips/cc2420/lplDummyLplC.nc, 1.2, 1.3

Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/lpl
In directory
sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv15984/tos/chips/cc2420/lpl

Modified Files:
	DummyLplC.nc 
Log Message:
removed nasty compiler warning

Index: DummyLplC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DummyLplC.nc	14 May 2008 21:40:55 -0000	1.2
--- DummyLplC.nc	19 Jun 2008 07:25:35 -0000	1.3
***************
*** 37,41 ****
   */
  
! #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
  
  configuration DummyLplC {
--- 37,41 ----
   */
  
! //#warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
  
  configuration DummyLplC {

_______________________________________________
Tinyos-2-commits mailing list
Tinyos-2-commits at millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2-co
mmits



More information about the Tinyos-2.0wg mailing list