in test_i2c_bus reduced timeout from 10 to 5

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

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

Loading…
Cancel
Save

Powered by TurnKey Linux.