Bug in PSU Voltage in integer conversion

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

@ -1098,7 +1098,7 @@ if (firstTime != ON)
batt_c_v = (int)(reading[BAT].voltage * 100);
battCurr = (int)reading[BAT].current + 2048;
PSUVoltage = (int)reading[BUS].voltage * 100;
PSUVoltage = (int)(reading[BUS].voltage * 100);
PSUCurrent = (int)reading[BUS].current + 2048;
if (payload == ON)

Loading…
Cancel
Save

Powered by TurnKey Linux.