Update main.c

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

@ -134,7 +134,6 @@ struct SensorData read_sensor_data(struct SensorConfig sensor) {
data.voltage = ((double)(valueV >> 3) * 4) / 1000;
data.power = (float)((uint16_t)wiringPiI2CReadReg16(sensor.fd, INA219_REG_POWER)) * (float)sensor.powerMultiplier;
return data;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.