Fix settings.h and compiler warning in xsns_29_mcp230xx.ino

This commit is contained in:
andrethomas 2018-08-15 22:07:25 +02:00
parent fd0e759f42
commit 084f3d486c
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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: