try 2 second i2c bus test

pull/127/head
alanbjohnston 5 years ago committed by GitHub
parent 1414d7b7da
commit f57fcb140f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1792,7 +1792,7 @@ int test_i2c_bus(int bus)
if (access(busDev, W_OK | R_OK) >= 0) { // Test if I2C Bus is present
// printf("bus is present\n\n");
char result[128];
const char command_start[] = "timeout 5 i2cdetect -y "; // was 10
const char command_start[] = "timeout 2 i2cdetect -y "; // was 5 10
char command[50];
strcpy (command, command_start);
strcat (command, busS);

Loading…
Cancel
Save

Powered by TurnKey Linux.