Change tele message of ADS1115 to allow it to work correctly with rules

Change tele message of ADS1115 to allow it to work correctly with rules, by removing "[", as reported by issue #5681
This commit is contained in:
MadDoct 2019-04-21 17:55:00 +01:00 committed by GitHub
parent 16213af36e
commit 393953d894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -212,7 +212,7 @@ void Ads1115Show(bool json)
if (!ads1115_type) { return; } if (!ads1115_type) { return; }
if (json) { if (json) {
ResponseAppend_P(PSTR(",\"ADS1115\":[")); ResponseAppend_P(PSTR(",\"ADS1115\":"));
} }
char *comma = (char*)""; char *comma = (char*)"";
@ -233,9 +233,6 @@ void Ads1115Show(bool json)
} }
} }
if (json) {
ResponseAppend_P(PSTR("]"));
}
} }
/*********************************************************************************************\ /*********************************************************************************************\