Skip to content

Commit

Permalink
Add OneWire provider support in LinuxFs plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszzbyrad committed Jan 3, 2025
1 parent 5ad14b5 commit c91f633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public int getPriority() {
*/
@Override
public OneWire create(OneWireConfig config) {
LinuxOneWire oneWire = new LinuxOneWire(this.oneWireFileSystemPath);
LinuxOneWire oneWire = new LinuxOneWire(this.oneWireFileSystemPath, config.device());
LinuxFsOneWire fsOneWire = new LinuxFsOneWire(oneWire, this, config);
this.context.registry().add(fsOneWire);
return fsOneWire;
Expand Down
1 change: 1 addition & 0 deletions plugins/pi4j-plugin-linuxfs/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
exports com.pi4j.plugin.linuxfs.provider.gpio.digital;
exports com.pi4j.plugin.linuxfs.provider.pwm;
exports com.pi4j.plugin.linuxfs.provider.i2c;
exports com.pi4j.plugin.linuxfs.provider.onewire;

provides com.pi4j.extension.Plugin
with LinuxFsPlugin;
Expand Down

0 comments on commit c91f633

Please sign in to comment.