mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Update xsns_29_mcp230xx.ino
This commit is contained in:
parent
18f47be237
commit
db223b9d10
@ -70,7 +70,7 @@ const char MCP230XX_CMND_RESPONSE[] PROGMEM = "{\"S29cmnd_D%i\":{\"COMMAND\":\"%
|
|||||||
|
|
||||||
const char* ConvertNumTxt(uint8_t statu, uint8_t pinmod=0) {
|
const char* ConvertNumTxt(uint8_t statu, uint8_t pinmod=0) {
|
||||||
#ifdef USE_MCP230xx_OUTPUT
|
#ifdef USE_MCP230xx_OUTPUT
|
||||||
if (pinmod==6) {
|
if (pinmod == 6) {
|
||||||
if (statu < 2) statu = abs(statu-1);
|
if (statu < 2) statu = abs(statu-1);
|
||||||
}
|
}
|
||||||
#endif // USE_MCP230xx_OUTPUT
|
#endif // USE_MCP230xx_OUTPUT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user