Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

Commit 2922367

Browse files
committed
bug correction when Probing PCAL9539A chip
1 parent 254f91c commit 2922367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver_pcal6416a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bool pcal6416a_init(void) {
5050
i2c_expander_addr = 0;
5151

5252
/// Probing PCAL9539A chip
53-
if (ioctl(!i2c_expander_addr && fd_i2c_expander, I2C_SLAVE_FORCE, PCAL9539A_I2C_ADDR) < 0) {
53+
if (!i2c_expander_addr && ioctl(fd_i2c_expander, I2C_SLAVE_FORCE, PCAL9539A_I2C_ADDR) < 0) {
5454
printf("In %s - Failed to acquire bus access and/or talk to slave PCAL9539A_I2C_ADDR 0x%02X.\n",
5555
__func__, PCAL9539A_I2C_ADDR);
5656
}

0 commit comments

Comments
 (0)