Skip to content

Commit

Permalink
fix light toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McFadden committed Jul 29, 2024
1 parent 79b4c96 commit 10baa66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LinearSnapControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,14 @@ def findFocus(self, camera=None):

def triggerHalt(self):
self.halt = True
self.toggleLight(False)
while(self.arduino.in_waiting):
t = self.arduino.read()

def endOfCore(self, message):
self.halt = True
time.sleep(0.1)
self.toggleLight(False)
# self.goHome()

def imageCore(self, coreId, callback, camera, coreSize):
Expand Down Expand Up @@ -229,5 +231,5 @@ def imageCore(self, coreId, callback, camera, coreSize):
t.start()
if(self.halt):
return
self.toggleLight(False)

self.callback()

0 comments on commit 10baa66

Please sign in to comment.