No changes

pull/6/merge
Carlos Garcia Saura 2013-09-11 13:01:10 +02:00
parent c12d10b555
commit d9b8c2d1a8
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ import random
from CycloneHost.helper import * from CycloneHost.helper import *
# End modules # End modules
# Begin configuration. It is overwritten when running setup(baudrate, device) # Begin configuration. It is overwritten when running connect()
BAUDRATE = 115200 BAUDRATE = 115200
DEVICE = "/dev/ttyUSB0" DEVICE = "/dev/ttyUSB0"
Emulate = 0 Emulate = 0
@ -57,7 +57,7 @@ OK_response = "ok" # First two characters of an OK response (case insensitive)
CNC_Machine = [] CNC_Machine = []
def connect(baudrate, device, emulate = 0): def connect(baudrate, device, emulate = 0):
global CNC_Machine, Emulate global CNC_Machine, Emulate, BAUDRATE, DEVICE
BAUDRATE = baudrate BAUDRATE = baudrate
DEVICE = device DEVICE = device
print("Connecting to Cyclone...") print("Connecting to Cyclone...")