mirror of https://github.com/arendst/Tasmota.git
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:
parent
16213af36e
commit
393953d894
|
@ -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("]"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
|
|
Loading…
Reference in New Issue