mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 00:05:43 +00:00
Critical fixes based on review feedback: Threading fixes: - CSI callback now only copies data to buffer (runs in WiFi task) - Actual processing moved to loop() in main task context - Added CSIDataBuffer structure for safe cross-task communication - Prevents race conditions and task priority issues Logging improvements: - Combined related config messages with newlines (reduces packets) - Changed verbose logs to ESP_LOGV (state changes) - Changed info logs to ESP_LOGD (initialization) - Only warn if CSI fails to initialize - Removed redundant setup message Configuration: - Removed cv.only_with_esp_idf restriction - C++ guards (#ifdef USE_ESP_IDF) already handle this - ESP32-S3 variant restriction remains (CSI requirement) These changes ensure proper task safety and follow ESPHome logging best practices for network efficiency.
8.6 KiB
8.6 KiB