From e9471a3aac6e4a00333d266348c38aaea9086595 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 7 Feb 2024 18:07:33 +0100 Subject: [PATCH] [Fix] Added GpioD digital input provider --- .../src/main/java/com/pi4j/plugin/gpiod/GpioDPlugin.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/pi4j-plugin-gpiod/src/main/java/com/pi4j/plugin/gpiod/GpioDPlugin.java b/plugins/pi4j-plugin-gpiod/src/main/java/com/pi4j/plugin/gpiod/GpioDPlugin.java index 62fb9d66..4347da15 100644 --- a/plugins/pi4j-plugin-gpiod/src/main/java/com/pi4j/plugin/gpiod/GpioDPlugin.java +++ b/plugins/pi4j-plugin-gpiod/src/main/java/com/pi4j/plugin/gpiod/GpioDPlugin.java @@ -2,6 +2,7 @@ import com.pi4j.extension.Plugin; import com.pi4j.extension.PluginService; +import com.pi4j.plugin.gpiod.provider.gpio.digital.GpioDDigitalInputProvider; import com.pi4j.plugin.gpiod.provider.gpio.digital.GpioDDigitalOutputProvider; import com.pi4j.provider.Provider; import org.slf4j.Logger; @@ -43,7 +44,6 @@ public class GpioDPlugin implements Plugin { */ public static final String DIGITAL_INPUT_PROVIDER_ID = ID + "-digital-input"; - private Logger logger = LoggerFactory.getLogger(this.getClass()); /** @@ -52,7 +52,8 @@ public class GpioDPlugin implements Plugin { @Override public void initialize(PluginService service) { Provider[] providers = { - GpioDDigitalOutputProvider.newInstance() + GpioDDigitalOutputProvider.newInstance(), + GpioDDigitalInputProvider.newInstance() }; service.register(providers);