|
@@ -50,8 +50,7 @@ class GPIOWrapper(object):
|
|
lgpio.debug("setting pin numbering to broadcom")
|
|
lgpio.debug("setting pin numbering to broadcom")
|
|
if self.gpio:
|
|
if self.gpio:
|
|
self.gpio.setmode(self.gpio.BCM)
|
|
self.gpio.setmode(self.gpio.BCM)
|
|
- sig_exit = blinker.signal("global-exit")
|
|
+ atexit.register(self.cleanup)
|
|
- sig_exit.connect(self.cleanup)
|
|
|
|
|
|
|
|
def cleanup(self,*args):
|
|
def cleanup(self,*args):
|
|
lgpio.debug("cleanup! ({})".format(args))
|
|
lgpio.debug("cleanup! ({})".format(args))
|