Change JSON hydro level

This commit is contained in:
Norbert Richter 2022-03-09 17:53:32 +01:00
parent 5693d64de2
commit f9d1105fc6
No known key found for this signature in database
GPG Key ID: 6628701A626FA674
1 changed files with 2 additions and 1 deletions

View File

@ -1380,6 +1380,7 @@ bool NeoPoolIsIonization(void)
#define D_NEOPOOL_JSON_FILTRATION_MODE "Mode"
#define D_NEOPOOL_JSON_FILTRATION_SPEED "Speed"
#define D_NEOPOOL_JSON_HYDROLYSIS "Hydrolysis"
#define D_NEOPOOL_JSON_HYDROLYSIS_LEVEL "Level"
#define D_NEOPOOL_JSON_CELL_RUNTIME "Runtime"
#define D_NEOPOOL_JSON_CELL_RUNTIME_TOTAL "Total"
#define D_NEOPOOL_JSON_CELL_RUNTIME_PART "Part"
@ -1520,7 +1521,7 @@ void NeoPoolShow(bool json)
dec = 0;
sunit = PSTR("%");
}
ResponseAppend_P(PSTR(",\"" D_NEOPOOL_JSON_HYDROLYSIS "\":{\"" D_JSON_DATA "\":" NEOPOOL_FMT_HIDRO), dec, &fvalue);
ResponseAppend_P(PSTR(",\"" D_NEOPOOL_JSON_HYDROLYSIS "\":{\"" D_NEOPOOL_JSON_HYDROLYSIS_LEVEL "\":" NEOPOOL_FMT_HIDRO), dec, &fvalue);
ResponseAppend_P(PSTR(",\"" D_NEOPOOL_JSON_UNIT "\":\"%s\""), sunit);
#ifndef NEOPOOL_OPTIMIZE_READINGS