diff --git a/sorteerhoed/plotter.py b/sorteerhoed/plotter.py index 357b603..1e5ffc5 100644 --- a/sorteerhoed/plotter.py +++ b/sorteerhoed/plotter.py @@ -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