From 1b714b0320062bca1efa0348b5443e2bdfdb6401 Mon Sep 17 00:00:00 2001 From: andrethomas Date: Tue, 14 Aug 2018 21:45:56 +0200 Subject: [PATCH] Update xsns_29_mcp230xx.ino --- sonoff/xsns_29_mcp230xx.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonoff/xsns_29_mcp230xx.ino b/sonoff/xsns_29_mcp230xx.ino index b530b8a76..73608372d 100644 --- a/sonoff/xsns_29_mcp230xx.ino +++ b/sonoff/xsns_29_mcp230xx.ino @@ -27,7 +27,7 @@ https://www.microchip.com/wwwproducts/en/MCP23017 I2C Address: 0x20 - 0x27 - \*********************************************************************************************/ +\*********************************************************************************************/ #define XSNS_29 29 @@ -151,11 +151,11 @@ void MCP230xx_ApplySettings(void) { void MCP230xx_Detect() { - uint8_t buffer; - if (mcp230xx_type) { return; } + + uint8_t buffer; for (byte i = 0; i < sizeof(mcp230xx_addresses); i++) { mcp230xx_address = mcp230xx_addresses[i];