Browse Source

usbtest: Avoid messing up the display by escaping weird bytes via repr()

Luke Dashjr 12 years ago
parent
commit
2e5ef483bb
1 changed files with 1 additions and 2 deletions
  1. 1 2
      usbtest.py

+ 1 - 2
usbtest.py

@@ -84,7 +84,6 @@ else:
 	b=ser.readline()
 	print("Result: hex 0x" + binascii.hexlify(b))
 
-	# This could mess up the display - do it last
-	print("Result: asc '" + b + "'")
+	print("Result: asc %s" % (repr(b),))
 
 ser.close()