Add #ifndef for MCP23XXX_ADDR_START and MCP23XXX_ADDR_END (#22424)

As discussed in #22410.
This commit is contained in:
Norbert 2024-11-04 08:50:20 +01:00 committed by GitHub
parent 56243ef720
commit 490c48eefe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -75,8 +75,12 @@
#define XDRV_67 67 #define XDRV_67 67
#define XI2C_77 77 // See I2CDEVICES.md #define XI2C_77 77 // See I2CDEVICES.md
#ifndef MCP23XXX_ADDR_START
#define MCP23XXX_ADDR_START 0x20 // 32 #define MCP23XXX_ADDR_START 0x20 // 32
#endif
#ifndef MCP23XXX_ADDR_END
#define MCP23XXX_ADDR_END 0x26 // 38 #define MCP23XXX_ADDR_END 0x26 // 38
#endif
#define MCP23XXX_MAX_DEVICES 6 #define MCP23XXX_MAX_DEVICES 6