From 8f8334d98fa3b69a6dcf9fb8260caa445448a629 Mon Sep 17 00:00:00 2001 From: quellus Date: Sun, 2 Mar 2025 17:14:00 -0700 Subject: [PATCH] fix bug with setmode not setting variables correctly --- Mock/GPIO.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mock/GPIO.py b/Mock/GPIO.py index d0d08fa..da11dc4 100644 --- a/Mock/GPIO.py +++ b/Mock/GPIO.py @@ -73,6 +73,8 @@ def setmode(mode): BCM - Use Broadcom GPIO 00..nn numbers """ # GPIO = GPIO() + global setModeDone + global _mode if(mode == BCM): setModeDone = True _mode = mode