1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 15:55:46 +00:00

[logger] Use C++17 nested namespace syntax (#9916)

This commit is contained in:
J. Nick Koston
2025-07-26 11:06:01 -10:00
committed by GitHub
parent 0e2520e4c0
commit 981b906579
12 changed files with 24 additions and 50 deletions

View File

@@ -8,8 +8,7 @@
#include <zephyr/drivers/uart.h>
#include <zephyr/usb/usb_device.h>
namespace esphome {
namespace logger {
namespace esphome::logger {
static const char *const TAG = "logger";
@@ -82,7 +81,6 @@ const char *const UART_SELECTIONS[] = {"UART0", "UART1", "USB_CDC"};
const char *Logger::get_uart_selection_() { return UART_SELECTIONS[this->uart_]; }
} // namespace logger
} // namespace esphome
} // namespace esphome::logger
#endif