From 8f51f6f5e2c3521427b4c3d3d1da37c0f81b99dd Mon Sep 17 00:00:00 2001 From: Frank Delporte Date: Fri, 23 Sep 2022 13:16:35 +0200 Subject: [PATCH] #244 add missing initialization in constructor --- pi4j-core/src/main/java/com/pi4j/io/spi/SpiBase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pi4j-core/src/main/java/com/pi4j/io/spi/SpiBase.java b/pi4j-core/src/main/java/com/pi4j/io/spi/SpiBase.java index 80f807ee..751bc801 100644 --- a/pi4j-core/src/main/java/com/pi4j/io/spi/SpiBase.java +++ b/pi4j-core/src/main/java/com/pi4j/io/spi/SpiBase.java @@ -48,6 +48,9 @@ public abstract class SpiBase extends IOBase implem */ public SpiBase(SpiProvider provider, SpiConfig config) { super(provider, config); + this.name = config.name(); + this.id = config.id(); + this.description = config.description(); } /** {@inheritDoc} */