Update telem.c

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

@ -128,7 +128,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]));
printf("Bus value %d \n", atoi(&bus[pos]));
FILE *i2cdetect = popen("timeout --preserve-status 5 i2cdetect -y 0", "r");
// printf("1\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.