gpio: only setmode if it hasn't been set yet
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import signal
|
||||
|
||||
|
||||
def _cleanup(sig, frame):
|
||||
def _cleanup(*args, **kwargs):
|
||||
import sys
|
||||
import RPi.GPIO as gpio
|
||||
gpio.cleanup()
|
||||
|
||||
Reference in New Issue
Block a user