Updated an incorrect voltage constant for the 5V input rail, and added

parenthesis to make the order of operations explicit.
Fix for artf3728

Change-Id: I2dfbad03980c4154cf253fbb06792b8502fcca02
This commit is contained in:
Fredric Silberberg
2014-11-07 15:16:46 -05:00
parent da0cc0c83f
commit 747cdc8a58

View File

@@ -46,7 +46,7 @@ float getUserCurrent6V(int32_t *status) {
*/
float getUserVoltage5V(int32_t *status) {
initializePower(status);
return power->readUserVoltage5V(status) / 4.096f * 0.004962f - 0.013f;
return power->readUserVoltage5V(status) / 4.096f * 0.005962f - 0.013f;
}
/**