From 82355dfa3e7f839484fcd9ff26110ef2eb6215ff Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 18:37:30 -0400 Subject: [PATCH] 10 second i2c timeout time --- afsk/telem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afsk/telem.c b/afsk/telem.c index c174f151..c8d8d214 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -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 5 i2cdetect -y "; + char command[50] = "timeout 10 i2cdetect -y "; strcat (command, &bus[pos]); FILE *i2cdetect = popen(command, "r");