From 393953d89456943ae3b10cea7cb62be30bf67f1d Mon Sep 17 00:00:00 2001 From: MadDoct <32080323+MadDoct@users.noreply.github.com> Date: Sun, 21 Apr 2019 17:55:00 +0100 Subject: [PATCH] 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 --- sonoff/xsns_12_ads1115.ino | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sonoff/xsns_12_ads1115.ino b/sonoff/xsns_12_ads1115.ino index d40b72849..a91d969bc 100644 --- a/sonoff/xsns_12_ads1115.ino +++ b/sonoff/xsns_12_ads1115.ino @@ -212,7 +212,7 @@ void Ads1115Show(bool json) if (!ads1115_type) { return; } if (json) { - ResponseAppend_P(PSTR(",\"ADS1115\":[")); + ResponseAppend_P(PSTR(",\"ADS1115\":")); } char *comma = (char*)""; @@ -233,9 +233,6 @@ void Ads1115Show(bool json) } } - if (json) { - ResponseAppend_P(PSTR("]")); - } } /*********************************************************************************************\