Skip to content

Commit

Permalink
Update AS726X.c
Browse files Browse the repository at this point in the history
scan all mux channel!
  • Loading branch information
LennardBoediger authored May 2, 2021
1 parent 89db104 commit e9f1fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/lib/wiringPi_AS726X_Libary/AS726X.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void I2C_Mux_Scan(sensor_list *const s){
if (wiringPiI2CWriteReg8 (fd, 5, 1) == 0){
//Mux Detected
printf("Mux at %X Detected\n", MUX_ADDRESS);
for (int mux_channel = 2; mux_channel < 8; ++mux_channel)
for (int mux_channel = 0; mux_channel < 8; ++mux_channel)
{
wiringPiI2CWrite(fd, 1 << mux_channel); // shift to every channel
I2C_Scan(s, mux_channel);
Expand Down

0 comments on commit e9f1fdc

Please sign in to comment.