1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

[bluetooth_proxy] [esp32_ble_tracker] [esp32_ble] Use C++17 nested namespace syntax (#9825)

This commit is contained in:
J. Nick Koston
2025-07-23 17:23:45 -10:00
committed by GitHub
parent 544cf9b9c0
commit ec2e0c50f1
15 changed files with 30 additions and 60 deletions

View File

@@ -11,8 +11,7 @@
#include "ble_scan_result.h"
namespace esphome {
namespace esp32_ble {
namespace esphome::esp32_ble {
// Compile-time verification that ESP-IDF scan complete events only contain a status field
// This ensures our reinterpret_cast in ble.cpp is safe
@@ -395,7 +394,6 @@ static_assert(sizeof(esp_ble_sec_t) <= 73, "esp_ble_sec_t is larger than BLEScan
// BLEEvent total size: 84 bytes (80 byte union + 1 byte type + 3 bytes padding)
} // namespace esp32_ble
} // namespace esphome
} // namespace esphome::esp32_ble
#endif