Permalink
Browse files

Re-enable printing of icons bytes while working out some kinks

  • Loading branch information...
1 parent 83a1be8 commit 3bc4281fdaeb3236d3a3868d23284bdc9f2fecfe @jherland committed Jan 29, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 avr_control.py
View
@@ -126,9 +126,10 @@ def __init__(self, line1, line2, icons):
self.icons = icons
def __str__(self):
- return "<AVR_Status: '%s' '%s' %s/%s/%s -> %s>" % (
+ return "<AVR_Status: '%s' '%s' %s/%s/%s -> %s [%s]>" % (
self.line1, self.line2, self.source(), self.ch_string(),
- self.surr_string(), self.spkr_string())
+ self.surr_string(), self.spkr_string(),
+ " ".join(["%02x" % (ord(b)) for b in self.icons]))
def dgram(self):
"""Create a datagram containing AVR status info.

0 comments on commit 3bc4281

Please sign in to comment.