disabled gpio_handler.py to always return false to ON_HARDWARE

This commit is contained in:
Nicholas Dyer 2023-05-12 23:34:15 -04:00
parent b8776a6f7f
commit 526b51b754

View File

@ -10,7 +10,7 @@ ON_HARDWARE = None # Flag to tell other methods if the program is running on ha
try: try:
importlib.util.find_spec('RPi.GPIO') importlib.util.find_spec('RPi.GPIO')
import RPi.GPIO as GPIO import RPi.GPIO as GPIO
ON_HARDWARE = True ON_HARDWARE = False
except ImportError: except ImportError:
import pocket_friends.game_files.io.fake_gpio as GPIO import pocket_friends.game_files.io.fake_gpio as GPIO
ON_HARDWARE = False ON_HARDWARE = False