Update telem.c

pull/51/head
alanbjohnston 6 years ago committed by GitHub
parent 591892c346
commit 3bf2d4882d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -126,7 +126,7 @@ struct SensorData read_sensor_data(struct SensorConfig sensor) {
struct SensorConfig config_sensor(char *bus, int address, int milliAmps) {
struct SensorConfig data;
printf("Bus number: %d \n", atoi(bus[(strlen(bus)/sizeof(bus[0]) - 1]));
printf("Bus number: %d \n", atoi(bus[(strlen(bus)/sizeof(bus[0])) - 1]));
FILE *i2cdetect = popen("timeout --preserve-status 5 i2cdetect -y 0", "r");
pclose(i2cdetect);

Loading…
Cancel
Save

Powered by TurnKey Linux.