Skip to content

Commit

Permalink
Merge pull request #381 from mores/fixLogging
Browse files Browse the repository at this point in the history
Missing pin parameter in logging call.
  • Loading branch information
FDelporte authored Sep 11, 2024
2 parents 6f32243 + 2883fe8 commit 98fecbc
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 98fecbc

Please sign in to comment.