mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
Fix bug in MCP230xx_CheckForInterrupt()
This commit is contained in:
parent
cc5b0aaf90
commit
ad53d16c2e
@ -146,7 +146,7 @@ bool MCP230xx_CheckForInterrupt(void) {
|
|||||||
if ((intf >> intp) & 0x01) { // we know which pin caused interrupt
|
if ((intf >> intp) & 0x01) { // we know which pin caused interrupt
|
||||||
report_int = 0;
|
report_int = 0;
|
||||||
if (Settings.mcp230xx_config[intp+(mcp230xx_port*8)].pinmode > 1) {
|
if (Settings.mcp230xx_config[intp+(mcp230xx_port*8)].pinmode > 1) {
|
||||||
switch (Settings.mcp230xx_config[+(mcp230xx_port*8)].pinmode) {
|
switch (Settings.mcp230xx_config[intp+(mcp230xx_port*8)].pinmode) {
|
||||||
case 2:
|
case 2:
|
||||||
report_int = 1;
|
report_int = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user