diff --git a/sonoff/settings.h b/sonoff/settings.h index 835710c63..c400e803d 100644 --- a/sonoff/settings.h +++ b/sonoff/settings.h @@ -157,8 +157,7 @@ typedef union { uint8_t pinmode : 3; // Pin mode (1 through 6) uint8_t pullup : 1; // Enable internal weak pull-up resistor uint8_t saved_state : 1; // Save output state, if used. - uint8_t int_event_enable : 1; // Enable interrupt to cause immediate event transmit - uint8_t int_tele_enable : 1; // Enable interrupt to cause immediate telemetry transmit + uint8_t int_report_mode : 2; // Interrupt reporting mode 0 = immediate telemetry & event, 1 = immediate event only, 2 = immediate telemetry only uint8_t b7 : 1; }; } Mcp230xxCfg; diff --git a/sonoff/xsns_29_mcp230xx.ino b/sonoff/xsns_29_mcp230xx.ino index 90c379b1b..39da4bcf7 100644 --- a/sonoff/xsns_29_mcp230xx.ino +++ b/sonoff/xsns_29_mcp230xx.ino @@ -99,7 +99,7 @@ void MCP230xx_ApplySettings(void) { uint8_t reg_iodir = 0xFF; #ifdef USE_MCP230xx_OUTPUT uint8_t reg_portpins = 0x00; -#endif USE_MCP230xx_OUTPUT +#endif // USE_MCP230xx_OUTPUT for (uint8_t idx = 0; idx < 8; idx++) { switch (Settings.mcp230xx_config[idx+(mcp230xx_port*8)].pinmode) { case 0 ... 1: