Skip to content

Commit

Permalink
Missing pin parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mores committed Sep 10, 2024
1 parent 6f32243 commit 2883fe8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void gpioSetMode(int pin, PiGpioMode mode) {
validateReady();
validatePin(pin);
int result = PIGPIO.gpioSetMode(pin, mode.value());
logger.trace("[GPIO::MODE-SET] <- PIN: {}; MODE={}({}); SUCCESS={}", mode.name(), mode.value(), (result>=0));
logger.trace("[GPIO::MODE-SET] <- PIN: {}; MODE={}({}); SUCCESS={}", pin, mode.name(), mode.value(), (result>=0));
validateResult(result); // Returns 0 if OK, otherwise PI_BAD_GPIO or PI_BAD_PUD.
}

Expand Down

0 comments on commit 2883fe8

Please sign in to comment.