From dd2543a2d6256a72db1f4405ec1569e7b14605e6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 9 Apr 2026 16:58:28 -1000 Subject: [PATCH] [sx1509] Reorder fields to minimize padding --- esphome/components/sx1509/sx1509.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/sx1509/sx1509.h b/esphome/components/sx1509/sx1509.h index e50bb6c99c6..4a398e820eb 100644 --- a/esphome/components/sx1509/sx1509.h +++ b/esphome/components/sx1509/sx1509.h @@ -78,6 +78,7 @@ class SX1509Component : public Component, uint16_t port_mask_ = 0x00; uint16_t output_state_ = 0x00; bool has_keypad_ = false; + volatile bool interrupt_pending_{false}; uint8_t rows_ = 0; uint8_t cols_ = 0; std::string keys_; @@ -89,7 +90,6 @@ class SX1509Component : public Component, std::vector key_triggers_; InternalGPIOPin *interrupt_pin_{nullptr}; - volatile bool interrupt_pending_{false}; uint32_t last_loop_timestamp_ = 0; const uint32_t min_loop_period_ = 15; // ms