From 2180d0b1c22ac4d98f2c885b4a3fcbf524a48842 Mon Sep 17 00:00:00 2001 From: razvanm Date: Mon, 29 Dec 2008 23:52:03 +0000 Subject: [PATCH] Don't print empty lines in the PRINTF from tos.py --- support/sdk/python/tos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2