Skip to content

Commit

Permalink
#244 add missing initialization in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Delporte committed Sep 23, 2022
1 parent ecfe8db commit 8f51f6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pi4j-core/src/main/java/com/pi4j/io/spi/SpiBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public abstract class SpiBase extends IOBase<Spi, SpiConfig, SpiProvider> implem
*/
public SpiBase(SpiProvider provider, SpiConfig config) {
super(provider, config);
this.name = config.name();
this.id = config.id();
this.description = config.description();
}

/** {@inheritDoc} */
Expand Down

0 comments on commit 8f51f6f

Please sign in to comment.