[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/mac/tkn154 ScanP.nc, 1.6, 1.7

Jan-Hinrich Hauer janhauer at users.sourceforge.net
Mon Apr 27 02:26:21 PDT 2009


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/mac/tkn154
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25994/tos/lib/mac/tkn154

Modified Files:
	ScanP.nc 
Log Message:
Energy detection scan was not properly checking the radio state. Now fixed.

Index: ScanP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/mac/tkn154/ScanP.nc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ScanP.nc	24 Apr 2009 16:44:55 -0000	1.6
--- ScanP.nc	27 Apr 2009 09:26:18 -0000	1.7
***************
*** 325,329 ****
      if (m_resultIndex == m_resultListNumEntries)
        m_terminateScan = TRUE; // done
!     call RadioOff.off();
    }
  
--- 325,330 ----
      if (m_resultIndex == m_resultListNumEntries)
        m_terminateScan = TRUE; // done
!     if (call RadioOff.off() == EALREADY)
!       signal RadioOff.offDone();
    }
  



More information about the Tinyos-2-commits mailing list