mirror of
https://github.com/esphome/esphome.git
synced 2026-09-21 03:58:41 +00:00
Add atomicity comment for sta_state_ member variable
This commit is contained in:
@@ -815,7 +815,10 @@ class WiFiComponent final : public Component {
|
||||
#endif /* USE_NETWORK_IPV6 */
|
||||
bool error_from_callback_{false};
|
||||
#ifdef USE_ESP8266
|
||||
uint8_t sta_state_{0}; // ESP8266WiFiSTAState, defined in wifi_component_esp8266.cpp
|
||||
// ESP8266WiFiSTAState enum, defined in wifi_component_esp8266.cpp.
|
||||
// Written from SDK system context (wifi_event_callback) — uint8_t writes
|
||||
// are atomic on Xtensa LX106 so no synchronization is needed.
|
||||
uint8_t sta_state_{0};
|
||||
#endif
|
||||
RetryHiddenMode retry_hidden_mode_{RetryHiddenMode::BLIND_RETRY};
|
||||
RoamingState roaming_state_{RoamingState::IDLE};
|
||||
|
||||
Reference in New Issue
Block a user