MCP230xx Add sensor29 pin,2 for toggle

This commit is contained in:
Andre Thomas 2019-10-01 08:49:40 +02:00 committed by GitHub
parent 0e240bbeb1
commit 9884cfaf16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ bool MCP230xx_Command(void) {
MCP230xx_SetOutPin(pin,pincmd);
return serviced;
}
if (!strcmp(subStr(sub_string, XdrvMailbox.data, ",", 2), "T")) {
if ((!strcmp(subStr(sub_string, XdrvMailbox.data, ",", 2), "T")) || (!strcmp(subStr(sub_string, XdrvMailbox.data, ",", 2), "2"))) {
MCP230xx_SetOutPin(pin,2);
return serviced;
}