mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Merge pull request #11104 from barbudor/pr_mcp230xx_switch_back
allows switch pinmode from output to input
This commit is contained in:
commit
1d9d982b6d
@ -645,7 +645,7 @@ bool MCP230xx_Command(void)
|
|||||||
return serviced;
|
return serviced;
|
||||||
}
|
}
|
||||||
#ifdef USE_MCP230xx_OUTPUT
|
#ifdef USE_MCP230xx_OUTPUT
|
||||||
if (Settings.mcp230xx_config[pin].pinmode >= 5) {
|
if (Settings.mcp230xx_config[pin].pinmode >= 5 && paramcount == 2) {
|
||||||
uint8_t pincmd = Settings.mcp230xx_config[pin].pinmode - 5;
|
uint8_t pincmd = Settings.mcp230xx_config[pin].pinmode - 5;
|
||||||
uint8_t relay_no = 0;
|
uint8_t relay_no = 0;
|
||||||
for (relay_no = 0; relay_no < mcp230xx_pincount ; relay_no ++) {
|
for (relay_no = 0; relay_no < mcp230xx_pincount ; relay_no ++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user