Permalink
Browse files

basic fixes

  • Loading branch information...
1 parent c501411 commit 20eb2ae87a9a4bd9b345527b567c94848b96ac01 @phooky phooky committed Jun 25, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 hexaservice/led_panel.py
  2. +2 −2 hexaservice/service.py
View
@@ -19,7 +19,7 @@ def open(self,portName,baud=9600):
self.serialPort = serial.Serial(portName, baud, timeout=0.5)
try:
self.serialPort.open()
- except serial.SerialException, e:
+ except serial.SerialException as e:
sys.stderr.write("Could not open serial port %s: %s\n" % (self.serialPort.portstr, e))
def command(self,command,payload,expected):
View
@@ -14,8 +14,8 @@ class ServiceThread:
led_panel.init()
panels[0].setRelay(True)
def sigint_handler(signal,frame):
- print("Caught ctrl-C; shutting down.")
- panels[0].setRelay(False)
+ print("Caught ctrl-C; shutting down.")
+ panels[0].setRelay(False)
led_panel.shutdown()
sys.exit(0)
signal.signal(signal.SIGINT,sigint_handler)

0 comments on commit 20eb2ae

Please sign in to comment.