Merge pull request #5684 from MadDoct/patch-3

Change tele message of ADS1115 to allow it to work correctly with rules
This commit is contained in:
Theo Arends 2019-04-25 15:24:50 +02:00 committed by GitHub
commit c019da7b0f
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 (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("]"));
}
}
/*********************************************************************************************\