fix opions bug
This commit is contained in:
parent
072db30611
commit
d4372083c5
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,6 @@ class Plotter:
|
|||
|
||||
def connect(self):
|
||||
|
||||
# back to default control mode:
|
||||
self.ad.options.mode = "plot"
|
||||
# connect/disconnect once because often first connection attempt fails
|
||||
self.ad.interactive()
|
||||
self.ad.connect()
|
||||
|
@ -64,6 +62,8 @@ class Plotter:
|
|||
time.sleep(1)
|
||||
connected = self.ad.connect()
|
||||
|
||||
# back to default control mode:
|
||||
self.ad.options.mode = "plot"
|
||||
# self.ad.options.units = 1 # set to use centimeters instead of inches
|
||||
self.ad.options.accel = 100;
|
||||
self.ad.options.speed_penup = 100
|
||||
|
|
Loading…
Reference in a new issue