Bug fix: Incorrect JSON output for EZO FLO

There was a copy/paste mistake in the EZO FLO implementation that this fixes.
This commit is contained in:
Christopher Tremblay 2020-11-05 02:16:16 -08:00
parent e2a094802b
commit c487540201
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ struct EZOFLO : public EZOStruct {
if (json) {
ResponseAppend_P(PSTR(",\"%s\":{\"" D_JSON_VOLUME "\":%s"), name, volume);
if (hasFlow) {
ResponseAppend_P(PSTR(",\"" D_JSON_FLOWRATE "\":%s"), name, rate);
ResponseAppend_P(PSTR(",\"" D_JSON_FLOWRATE "\":%s"), rate);
}
ResponseJsonEnd();