Skip to content

Commit

Permalink
Rename method to runningOnRaspberryPi
Browse files Browse the repository at this point in the history
  • Loading branch information
FDelporte committed Jun 25, 2024
1 parent a327f39 commit d532f68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public GpioDContext() {
}

public synchronized void initialize() {
if (!BoardInfoHelper.runsOnRaspberryPi()) {
if (!BoardInfoHelper.runningOnRaspberryPi()) {
logger.warn("Can't initialize GpioD context, board model is unknown");
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public static void loadLibraryFromClasspath(String path) throws IOException {
}

// Finally, load the library
if (!BoardInfoHelper.runsOnRaspberryPi()) {
if (!BoardInfoHelper.runningOnRaspberryPi()) {
logger.warn("Can't load the library, board model is unknown");
} else {
System.load(target.toAbsolutePath().toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static boolean usesRP1() {
return instance.boardInfo.getBoardModel() == BoardModel.MODEL_5_B;
}

public static boolean runsOnRaspberryPi() {
public static boolean runningOnRaspberryPi() {
return instance.boardInfo.getBoardModel() != BoardModel.UNKNOWN;
}

Expand Down

0 comments on commit d532f68

Please sign in to comment.