|
@@ -55,9 +55,10 @@ class GPIOWrapper(object):
|
|
|
|
|
|
def cleanup(self,*args):
|
|
|
lgpio.debug("cleanup! ({})".format(args))
|
|
|
- lgpio.debug("_pins_for_cleanup is:"+str(_pins_for_cleanup))
|
|
|
if self.gpio:
|
|
|
- self.gpio.cleanup(_pins_for_cleanup)
|
|
|
+ # gpio.cleanup wants a list or tuple, but _pins_for_cleanup is
|
|
|
+ # a set. we have to convert it first.
|
|
|
+ self.gpio.cleanup(list(_pins_for_cleanup))
|
|
|
|
|
|
def load_rpi_gpio(self):
|
|
|
try:
|