[Tinyos-commits] CVS: tinyos-1.x/tos/system Reset.h,1.3,1.4

Joe Polastre jpolastre at users.sourceforge.net
Mon Nov 21 22:18:51 PST 2005


Update of /cvsroot/tinyos/tinyos-1.x/tos/system
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4341

Modified Files:
	Reset.h 
Log Message:
Silent errors are evil (so are preprocessor directives)
Putting an error in so that instead of thinking things will work
when they don't, you get an error that the function is not defined.


Index: Reset.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tos/system/Reset.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Reset.h	14 Sep 2005 17:06:38 -0000	1.3
--- Reset.h	22 Nov 2005 06:18:49 -0000	1.4
***************
*** 53,56 ****
--- 53,58 ----
  #elif defined(PLATFORM_TELOS) || defined(PLATFORM_TELOSB)
          WDTCTL = 0;
+ #else
+ #error "Reset.h not defined/supported for your platform, aborting..."
  #endif
  }



More information about the Tinyos-commits mailing list