From d4372083c5a3bd3c09306a48fc97c7feaf2807a4 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Sun, 17 Oct 2021 10:35:50 +0200 Subject: [PATCH] fix opions bug --- sorteerhoed/plotter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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