diff --git a/gpiodev/gpio.py b/gpiodev/gpio.py index 6a0bf3d..30bbd58 100644 --- a/gpiodev/gpio.py +++ b/gpiodev/gpio.py @@ -287,8 +287,7 @@ def __init__( ) self.label = label - if not gpio: - self.gpio = GPIOChip(_GPIO) + self.gpio = gpio or GPIOChip(_GPIO) handle_flags = GPIOHANDLE_REQUEST_INPUT