fix unit being wrong for solar display

This commit is contained in:
2025-07-02 19:11:36 +02:00
parent f02d935f40
commit 735f836458
2 changed files with 4 additions and 4 deletions

View File

@@ -33,8 +33,8 @@ export class SolarView{
this.solar_current_milli_ampere.innerText = "N/A"
this.solar_is_day.innerText = "N/A"
} else {
this.solar_voltage_milli_volt.innerText = solarState.mppt_voltage.toFixed(2)
this.solar_current_milli_ampere.innerText = String(+solarState.mppt_current)
this.solar_voltage_milli_volt.innerText = solarState.mppt_voltage.toFixed(0)
this.solar_current_milli_ampere.innerText = solarState.mppt_current.toFixed(0)
this.solar_is_day.innerText = solarState.is_day?"🌞":"🌙"
}