openevse_esp32_firmware icon indicating copy to clipboard operation
openevse_esp32_firmware copied to clipboard

LCD Display: Display Energy formatted to significant figures instead of decimal digits.

Open rbsexton opened this issue 3 years ago • 1 comments

The existing FW scales energy to SI notation and then places one digit after the decimal point.

This doesn't work so well for low values in kWh, ie 1.3kWh.

The ADCs in the system deliver about 3 significant figures, so display this number to a total of four - ie:

1.305kWh
13.05kWh
130.5kWh

rbsexton avatar Apr 04 '22 14:04 rbsexton

@rbsexton thanks for the contribution, been something I have been meaning to do this for a while. Will check it over.

jeremypoulter avatar Apr 04 '22 16:04 jeremypoulter