diff --git a/platypush/plugins/gpio/__init__.py b/platypush/plugins/gpio/__init__.py index d1d6bfe54..cd20baebd 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 or GPIO.getmode(): + if self._initialized and GPIO.getmode(): return GPIO.setmode(self.mode)