From d33494419a6a2201754e149419525683dd54e411 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 21 Dec 2019 23:36:09 +0100 Subject: [PATCH] Added cleanup action on GPIO plugin --- platypush/plugins/gpio/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platypush/plugins/gpio/__init__.py b/platypush/plugins/gpio/__init__.py index 4617fb5f7f..23d803f887 100644 --- a/platypush/plugins/gpio/__init__.py +++ b/platypush/plugins/gpio/__init__.py @@ -152,5 +152,10 @@ class GpioPlugin(Plugin): return values + @action + def cleanup(self): + import RPi.GPIO as gpio + gpio.cleanup() + # vim:sw=4:ts=4:et: