Update xsns_29_mcp230xx.ino

when more than single out pin is configured this prevents non unique key (for how assistant auto configuration) due too long string being ignored.
This commit is contained in:
nngg 2021-05-07 06:54:27 -07:00 committed by GitHub
parent 42708d0e09
commit 74f0bbaf9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ void MCP230xx_Show(bool json)
}
if (outputcount) {
uint16_t gpiototal = ((uint16_t)gpiob << 8) | gpio;
ResponseAppend_P(PSTR(",\"MCP230_OUT\":{"));
ResponseAppend_P(PSTR(",\"OUT\":{"));
char stt[7];
bool first = true;
for (uint32_t pinx = 0; pinx < mcp230xx_pincount; pinx++) {