diff --git a/platypush/plugins/gpio/__init__.py b/platypush/plugins/gpio/__init__.py index 177041a99c..d1d6bfe540 100644 --- a/platypush/plugins/gpio/__init__.py +++ b/platypush/plugins/gpio/__init__.py @@ -46,7 +46,7 @@ class GpioPlugin(Plugin): import RPi.GPIO as GPIO with self._init_lock: - if self._initialized: + if self._initialized or GPIO.getmode(): return GPIO.setmode(self.mode)