Skip to content

Commit

Permalink
Fixed chip address change while polling IIC.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoller2k committed May 29, 2013
1 parent 286ba91 commit 9717e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iic.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ void poll_iic(int xio)
iodev_e type;
get_xio_parm(xio, &type, &chip_addr, &regno);
buffer[0] = regno;
//connect_iic(chip_addr);
connect_iic(chip_addr);
write(fd, buffer, 1);
read(fd, buffer, 1);
//printf("iic: %02x\n", buffer[0]);
//printf("iic poll %d: %02x = %02x\n", xio, chip_addr, buffer[0]);
handle_iic_event(xio, buffer[0]);
//test_iic(chip_addr);
}
Expand Down

0 comments on commit 9717e25

Please sign in to comment.