Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
rombie18 committed May 3, 2023
1 parent 8dfab4f commit 05c3b99
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Software/threads/customthreads.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def run(self):

logging.info("Initialising Controller...")

mngr = pyjoystick.ThreadEventManager(self.__controller_add, self.__controller_remove, self.__controller_process, alive=self.__controller_alive)
mngr = pyjoystick.ThreadEventManager(self.__controller_add, self.__controller_remove, self.__controller_process)
mngr.start()

self.init_event.set()
Expand Down Expand Up @@ -196,9 +196,6 @@ def __controller_process(self, key):
logging.debug("Controller event: " + str(key))
self.pipe.append(data)

def __controller_alive(self):
return self.stop_event.is_set()

class ImageProcessingThread(Thread):
def __init__(self, pipe, stop_event, init_event, pause_event):
super(ImageProcessingThread, self).__init__(name="ImageProcessingThread")
Expand Down

0 comments on commit 05c3b99

Please sign in to comment.