From 7f440a9160619c699f7e8e58b3c0fad3c80ceaf3 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 23 Dec 2019 18:43:59 +0100 Subject: [PATCH] s/or/and/ --- platypush/plugins/gpio/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)