mirror of
https://github.com/esphome/esphome.git
synced 2026-05-21 17:22:31 +08:00
[wifi] Avoid BDK 3.0.78 wifi_event_sta_disconnected_t collision on BK72xx (#15942)
This commit is contained in:
@@ -12,7 +12,12 @@
|
||||
|
||||
#ifdef USE_BK72XX
|
||||
extern "C" {
|
||||
// BDK 3.0.78 (required for BK7238) redeclares wifi_event_sta_disconnected_t,
|
||||
// which LibreTiny's Arduino WiFi API already defines. ESPHome doesn't use the
|
||||
// BDK version, so rename it across this include to avoid the collision.
|
||||
#define wifi_event_sta_disconnected_t bdk_wifi_event_sta_disconnected_t
|
||||
#include <wlan_ui_pub.h>
|
||||
#undef wifi_event_sta_disconnected_t
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user