]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/python/tos.py
Don't print empty lines in the PRINTF from tos.py
[tinyos-2.x.git] / support / sdk / python / tos.py
index ead2c582118ea940027d00012988b8cf6ba68abb..83c08ade848d8aacc4b2c05a920b509087597f37 100644 (file)
@@ -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