pull/13/head
alanbjohnston 7 years ago committed by GitHub
parent 598dcbb2a1
commit a1607d6eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -142,7 +142,7 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) {
struct SensorConfig data;
if (access(bus, W_OK | R_OK) < 0) { // Test if I2C Bus is missing
printf("ERROR: % bus not present \n", bus);
printf("ERROR: %s bus not present \n", bus);
data.fd = OFF;
return (data);
}
@ -167,7 +167,7 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) {
}
#ifdef DEBUG_LOGGING
printf("Sensor %s %x configuration: %d %d %d %d %d\n", bus, address, data.fd
printf("Sensor %s %x configuration: %d %d %d %d %d\n", bus, address, data.fd,
data.config, data.calValue, data.currentDivider, data.powerMultiplier);
#endif
return data;

Loading…
Cancel
Save

Powered by TurnKey Linux.