Skip to content

Commit

Permalink
Fixed typo and actually start the timer.
Browse files Browse the repository at this point in the history
  • Loading branch information
venthur committed Jul 2, 2014
1 parent a2c618b commit b795f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/serialport.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def send(self, data, reset=True):
self.reset_timer.cancel()
self.port.write(chr(data))
if reset == True:
self.resete_timer = Timer(self.trigger_reset_time, self.send, (0, False))
self.reset_timer = Timer(self.trigger_reset_time, self.send, (0, False))
self.reset_timer.start()

def close(self):
self.port.close()
Expand Down

0 comments on commit b795f48

Please sign in to comment.