]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Don't print empty lines in the PRINTF from tos.py
authorrazvanm <razvanm>
Mon, 29 Dec 2008 23:52:03 +0000 (23:52 +0000)
committerrazvanm <razvanm>
Mon, 29 Dec 2008 23:52:03 +0000 (23:52 +0000)
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