Update telem.c

pull/51/head
alanbjohnston 6 years ago committed by GitHub
parent 9cb1c22cdb
commit ed5ba3fe41
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;
print ("Bus number: %d \n", atoi(bus[strlen(bus) - 1]);
print ("Bus number: %d \n", atoi(bus[strlen(bus) - 1]));
FILE *i2cdetect = popen("timeout --preserve-status 5 i2cdetect -y 0", "r");
pclose(i2dectect);

Loading…
Cancel
Save

Powered by TurnKey Linux.