[wifi] Let the empty pending_ flags struct take no space (#20142)

This commit is contained in:
J. Nick Koston
2026-10-05 12:00:23 +13:00
committed by GitHub
parent fe2e541dc8
commit 2f9e37d6a9
+2 -1
View File
@@ -983,7 +983,8 @@ class WiFiComponent final : public Component {
// Bools and bitfields
// Pending listener callbacks deferred from platform callbacks to main loop.
struct {
// Empty when no listener needs deferring (e.g. ESP32 without connect state listeners)
[[no_unique_address]] struct {
#ifdef USE_WIFI_CONNECT_STATE_LISTENERS
// Deferred until state machine reaches STA_CONNECTED so wifi.connected
// condition returns true in listener automations.