From bcdec72b73ef1453a8fa7e1e92a4a353cd6b3e91 Mon Sep 17 00:00:00 2001 From: "Bryan T. Richardson" Date: Wed, 7 Aug 2024 08:08:21 -0600 Subject: [PATCH] fix(rpi-gpio): correctly reference and start input monitoring thread --- src/python/otsim/rpi_gpio/rpi_gpio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/otsim/rpi_gpio/rpi_gpio.py b/src/python/otsim/rpi_gpio/rpi_gpio.py index 5bcfc3b..43627a0 100644 --- a/src/python/otsim/rpi_gpio/rpi_gpio.py +++ b/src/python/otsim/rpi_gpio/rpi_gpio.py @@ -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):