Merge pull request #9745 from tichris0/development

Bug fix: Incorrect JSON output for EZO FLO
This commit is contained in:
Theo Arends 2020-11-05 11:35:09 +01:00 committed by GitHub
commit 577fcbf73c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();