[Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/python tos.py, 1.7, 1.8
Chieh-Jan Mike Liang
liang_mike at users.sourceforge.net
Fri Feb 20 02:06:40 PST 2009
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/cpp/sf tcpcomm.cpp, 1.7, 1.8 sfpacket.cpp, 1.4, 1.5 sfcontrol.cpp, 1.4, 1.5 serialcomm.h, 1.3, 1.4 serialcomm.cpp, 1.4, 1.5
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/rf230 RF230Config.nc, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/support/sdk/python
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11451/support/sdk/python
Modified Files:
tos.py
Log Message:
Fix a problem where the ack variable can be referenced before being initialized
Index: tos.py
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/sdk/python/tos.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** tos.py 18 Feb 2009 21:30:07 -0000 1.7
--- tos.py 20 Feb 2009 10:06:38 -0000 1.8
***************
*** 371,374 ****
--- 371,375 ----
self.seqno = (self.seqno + inc) % 256
prevTimeout = self._source.getTimeout()
+ ack = None
end = None
if timeout: end = time.time() + timeout
***************
*** 397,401 ****
self._source.setTimeout(prevTimeout)
#print 'SimpleAM:write: got an ack:', ack, ack.seqno == self.seqno
! return ack.seqno == self.seqno
def setOobHook(self, oobHook):
--- 398,402 ----
self._source.setTimeout(prevTimeout)
#print 'SimpleAM:write: got an ack:', ack, ack.seqno == self.seqno
! return (ack != None and ack.seqno == self.seqno)
def setOobHook(self, oobHook):
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/cpp/sf tcpcomm.cpp, 1.7, 1.8 sfpacket.cpp, 1.4, 1.5 sfcontrol.cpp, 1.4, 1.5 serialcomm.h, 1.3, 1.4 serialcomm.cpp, 1.4, 1.5
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/rf230 RF230Config.nc, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list