Skip to content

Commit

Permalink
Avoid error message on PC
Browse files Browse the repository at this point in the history
  • Loading branch information
FDelporte committed Jun 3, 2024
1 parent 9731454 commit 23d7927
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ContextConfiguration {

public ContextConfiguration() {
try {
if ( BoardInfoHelper.current().getBoardModel() == BoardModel.UNKNOWN) {
if (BoardInfoHelper.current().getBoardModel() == BoardModel.UNKNOWN) {
this.pi4j = Pi4J.newContextBuilder()
.add(new MockPlatform())
.add(MockAnalogInputProvider.newInstance(),
Expand All @@ -42,9 +42,9 @@ public ContextConfiguration() {
MockDigitalOutputProvider.newInstance())
.build();
} else {
this.pi4j = Pi4J.newAutoContext();
this.pi4j = Pi4J.newAutoContext();
}
} catch (Error e) { // TODO Temporary fix for https://github.com/Pi4J/pi4j-v2/issues/354
} catch (Error e) {
logger.error("Pi4J library failed to load: {}", e.getMessage());
}
}
Expand Down

0 comments on commit 23d7927

Please sign in to comment.