disabled gpio_handler.py to always return false to ON_HARDWARE
This commit is contained in:
parent
b8776a6f7f
commit
526b51b754
|
@ -10,7 +10,7 @@ ON_HARDWARE = None # Flag to tell other methods if the program is running on ha
|
|||
try:
|
||||
importlib.util.find_spec('RPi.GPIO')
|
||||
import RPi.GPIO as GPIO
|
||||
ON_HARDWARE = True
|
||||
ON_HARDWARE = False
|
||||
except ImportError:
|
||||
import pocket_friends.game_files.io.fake_gpio as GPIO
|
||||
ON_HARDWARE = False
|
||||
|
|
Loading…
Reference in New Issue