Skip to content

Commit

Permalink
fix(rpi-gpio): correctly reference and start input monitoring thread
Browse files Browse the repository at this point in the history
  • Loading branch information
activeshadow committed Aug 7, 2024
1 parent cf72567 commit bcdec72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/otsim/rpi_gpio/rpi_gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def start(self: RPiGPIO):
self.subscriber.start('RUNTIME')

# run GPIO monitor in a thread
self.monitor_thread = threading.Thread(target=self.monitor, daemon=True).start()
self.monitor_thread = threading.Thread(target=self.monitor, daemon=True)
self.monitor_thread.start()


def stop(self: RPiGPIO):
Expand Down

0 comments on commit bcdec72

Please sign in to comment.