]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
isRen() requires a bool return value.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Mon, 8 Sep 2008 21:30:47 +0000 (21:30 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:00:48 +0000 (20:00 -0700)
tos/chips/msp430/pins/HplMsp430GeneralIORenP.nc

index e799bcd627af8cab408d34c3543ee9ec5dcffc39..f5c0d29fe93232ee0ad0de8d6693ce9866d47fd1 100644 (file)
@@ -69,5 +69,5 @@ implementation
   async command bool IO.isIOFunc() { return (PORTxSEL & (0x01<<pin)) == 0; }
   async command void IO.enableRen() { atomic PORTxREN |= (0x01 << pin); }
   async command void IO.disableRen() { atomic PORTxREN &= ~(0x01 << pin); }
-  async command void IO.isRen() { return PORTxREN = (0x01 << pin) != 0; }
+  async command bool IO.isRen() { return PORTxREN = (0x01 << pin) != 0; }
 }