Skip to content

Commit

Permalink
adding some verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
phooky committed Dec 3, 2014
1 parent 04a422c commit 7a45744
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hexaservice/led_panel.py
Expand Up @@ -120,10 +120,13 @@ def init(debug = False):
for candidate in glob.glob('/dev/ttyACM*'):
p = Panel()
try:
print("Opening candidate {}".format(candidate))
p.open(candidate)
panels[p.getID()] = p
print("{} succeeded".format(candidate))
except:
p.close()
print("{} failed".format(candidate))

def shutdown():
for p in panels:
Expand Down

0 comments on commit 7a45744

Please sign in to comment.