Skip to content

Commit

Permalink
fixes issue 111 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthvikm authored Nov 21, 2023
1 parent a8d9f6c commit 81c03ff
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public com.pi4j.context.Context createPi4jContext() {
// Build Pi4J context with this platform and PiGPIO providers
return Pi4J.newContextBuilder()
.noAutoDetect()
.add(new RaspberryPiPlatform())
.add(
PiGpioDigitalInputProvider.newInstance(piGpio),
PiGpioDigitalOutputProvider.newInstance(piGpio),
Expand All @@ -43,6 +42,12 @@ public com.pi4j.context.Context createPi4jContext() {
PiGpioSerialProvider.newInstance(piGpio),
PiGpioSpiProvider.newInstance(piGpio)
)
.add(new RaspberryPiPlatform(){
@Override
protected String[] getProviders() {
return new String[]{};
}
})
.build();
}

Expand Down

0 comments on commit 81c03ff

Please sign in to comment.