Merge pull request #11558 from hallard/teleinfo

always add teleinfo values in telemetry
This commit is contained in:
Theo Arends 2021-04-02 17:43:22 +02:00 committed by GitHub
commit 1ab0a2f05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -593,10 +593,8 @@ void TInfoShow(bool json)
ResponseAppend_P(PSTR(",\"Load\":%d"),(int) ((Energy.current[0]*100.0f) / isousc)); ResponseAppend_P(PSTR(",\"Load\":%d"),(int) ((Energy.current[0]*100.0f) / isousc));
} }
// add teleinfo full frame only if no teleinfo raw data setup // add teleinfo full frame
if (!Settings.flag4.teleinfo_rawdata) { ResponseAppendTInfo(',');
ResponseAppendTInfo(',');
}
#ifdef USE_WEBSERVER #ifdef USE_WEBSERVER