mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Fix SPM JSON Energy Total values
This commit is contained in:
parent
010f8f8d37
commit
116da1f5d2
@ -1039,7 +1039,7 @@ void SSPMEnergyShow(bool json) {
|
|||||||
if (json) {
|
if (json) {
|
||||||
ResponseAppend_P(PSTR(",\"SPM\":{\"" D_JSON_TOTAL "\":["));
|
ResponseAppend_P(PSTR(",\"SPM\":{\"" D_JSON_TOTAL "\":["));
|
||||||
for (uint32_t i = 0; i < TasmotaGlobal.devices_present; i++) {
|
for (uint32_t i = 0; i < TasmotaGlobal.devices_present; i++) {
|
||||||
ResponseAppend_P(PSTR("%s%*_f"), (i>0)?",":"", 0, &Sspm->total[i >>2][i &3]);
|
ResponseAppend_P(PSTR("%s%*_f"), (i>0)?",":"", -1, &Sspm->total[i >>2][i &3]);
|
||||||
}
|
}
|
||||||
ResponseAppend_P(PSTR("],\"" D_JSON_POWERUSAGE "\":["));
|
ResponseAppend_P(PSTR("],\"" D_JSON_POWERUSAGE "\":["));
|
||||||
for (uint32_t i = 0; i < TasmotaGlobal.devices_present; i++) {
|
for (uint32_t i = 0; i < TasmotaGlobal.devices_present; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user