Skip to content

Commit

Permalink
move declaration of some vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jimjing authored and Jim Jing committed Jun 12, 2014
1 parent a730293 commit 15af14a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/handlers/Johnny5/Johnny5InitHandler.py
Expand Up @@ -33,10 +33,6 @@
import lib.handlers.handlerTemplates as handlerTemplates

class Johnny5InitHandler(handlerTemplates.InitHandler):
#Defaults
baud = 115200
timeout = 1 #in seconds

def __init__(self, executor, comPort):
"""
The initialization for Johnny 5
Expand All @@ -45,6 +41,10 @@ def __init__(self, executor, comPort):
"""
self.johnny5Serial = None # serial port to Johnny 5

#Defaults
self.baud = 115200
self.timeout = 1 #in seconds

try:
self.johnny5Serial = serial.Serial(port = comPort, baudrate =
self.baud, timeout = self.timeout)
Expand Down

0 comments on commit 15af14a

Please sign in to comment.