mirror of https://github.com/arendst/Tasmota.git
Hide MCP230xx power changes
This commit is contained in:
parent
903c5c1de7
commit
776ed8a65c
|
@ -239,7 +239,7 @@ void MCP230xx_ApplySettings(void)
|
|||
if (mcp230xx_port ? mcp230xx_outpinmapping[idx] > 7 : mcp230xx_outpinmapping[idx] < 8) {
|
||||
uint8_t relay_no = TasmotaGlobal.devices_present - mcp230xx_outpincount + idx + 1;
|
||||
if (mcp230xx_keepout_no_toggle >0) mcp230xx_keepout_no_toggle--;
|
||||
ExecuteCommandPower(relay_no, (reg_portpins[mcp230xx_port] >> (mcp230xx_outpinmapping[idx] & 7)) & 1, SRC_IGNORE);
|
||||
ExecuteCommandPower(relay_no, ((reg_portpins[mcp230xx_port] >> (mcp230xx_outpinmapping[idx] & 7)) & 1) + 8, SRC_IGNORE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue