X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=support%2Fsdk%2Fpython%2Ftos.py;h=dee4de43af77364e5d3abbcfeb4d61ce6222d280;hp=330df0c2a4c66b29f6790805e70b8a947eda2188;hb=b7e372c3aa2f1da307407397da3b032df4ac4d49;hpb=167699cbf159e22a08c14a46fd2c68c72b09c10a diff --git a/support/sdk/python/tos.py b/support/sdk/python/tos.py index 330df0c2..dee4de43 100644 --- a/support/sdk/python/tos.py +++ b/support/sdk/python/tos.py @@ -448,6 +448,8 @@ class AM(SimpleAM): r = super(AM, self).write(packet, amId, timeout, blocking) while not r: r = super(AM, self).write(packet, amId, timeout, blocking, inc=0) + if timeout and not r: + raise Timeout return True