Disable scan on reset

This commit is contained in:
Ruben van de Ven 2019-11-04 08:57:42 +01:00
parent f356723d5a
commit c0a0bc478b

View file

@ -355,10 +355,10 @@ class CentralManagement():
self.eventQueue.put(Signal('scan.finished')) self.eventQueue.put(Signal('scan.finished'))
def reset(self) -> str: def reset(self) -> str:
# TODO: for returns & abandons
self.plotter.park() self.plotter.park()
scan = threading.Thread(target=self.cleanDrawing, name='reset') # Very confusing to have scanning on a reset (because often nothing has happened), so don't do itd
scan.start() # scan = threading.Thread(target=self.cleanDrawing, name='reset')
# scan.start()
self.server.statusPage.clearAssignment() self.server.statusPage.clearAssignment()
def scanImage(self) -> str: def scanImage(self) -> str: