set back to 5 sec for timeout i2cdetect

pull/51/head
alanbjohnston 5 years ago committed by GitHub
parent d728af2833
commit fed84ca26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -136,7 +136,7 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) {
int pos = strlen(bus) / sizeof(bus[0]) - 1;
// printf("Bus size %d \n", pos);
// printf("Bus value %d \n", atoi(&bus[pos]));
char command[50] = "timeout 3 i2cdetect -y ";
char command[50] = "timeout 5 i2cdetect -y ";
strcat (command, &bus[pos]);
FILE *i2cdetect = popen(command, "r");

Loading…
Cancel
Save

Powered by TurnKey Linux.