X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=support%2Fsdk%2Fpython%2Ftos.py;h=83c08ade848d8aacc4b2c05a920b509087597f37;hb=2180d0b1c22ac4d98f2c885b4a3fcbf524a48842;hp=ead2c582118ea940027d00012988b8cf6ba68abb;hpb=1acf29815e32190a6ff1b1212ba2702354c0ed48;p=tinyos-2.x.git diff --git a/support/sdk/python/tos.py b/support/sdk/python/tos.py index ead2c582..83c08ade 100644 --- a/support/sdk/python/tos.py +++ b/support/sdk/python/tos.py @@ -407,7 +407,7 @@ def printfHook(packet): s = "".join([chr(i) for i in packet.data]).strip('\0') lines = s.split('\n') for line in lines: - print "PRINTF:", line + if line: print "PRINTF:", line packet = None # No further processing for the printf packet return packet