From 12ffd1b84380361c35fc61d48e5085e18f8e3b0f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 7 Apr 2026 15:13:17 -1000 Subject: [PATCH] address bot comments --- esphome/components/max6956/max6956.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/components/max6956/max6956.h b/esphome/components/max6956/max6956.h index 8ee6a26823..35fafbc00b 100644 --- a/esphome/components/max6956/max6956.h +++ b/esphome/components/max6956/max6956.h @@ -26,6 +26,8 @@ enum MAX6956GPIORange : uint8_t { static constexpr uint8_t MAX6956_BANK_SIZE = 8; static constexpr uint8_t MAX6956_TOTAL_PINS = 32; // Includes pins 0-3 (unused) for cache alignment static constexpr uint8_t MAX6956_BANK0_SHIFT = 4; +static_assert(MAX6956_TOTAL_PINS % MAX6956_BANK_SIZE == 0, + "MAX6956_TOTAL_PINS must be an exact multiple of MAX6956_BANK_SIZE for CachedGpioExpander"); enum MAX6956GPIORegisters { MAX6956_GLOBAL_CURRENT = 0x02,