From 178b11196a70647ec58d33a2fd6e18f11aeee107 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 9 May 2024 14:34:25 +0200 Subject: [PATCH] Fix default compile --- tasmota/tasmota_xsns_sensor/xsns_29_mcp230xx.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/tasmota_xsns_sensor/xsns_29_mcp230xx.ino b/tasmota/tasmota_xsns_sensor/xsns_29_mcp230xx.ino index 29a25c182..66c1a982a 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_29_mcp230xx.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_29_mcp230xx.ino @@ -31,6 +31,10 @@ #define XSNS_29 29 #define XI2C_22 22 // See I2CDEVICES.md +#ifndef USE_MCP230xx_ADDR +#define USE_MCP230xx_ADDR 0x20 // Enable MCP23008/MCP23017 I2C Address to use (Must be within range 0x20 through 0x27 - set according to your wired setup) +#endif + /* Default register locations for MCP23008 - They change for MCP23017 in default bank mode */