Files
esphome/esphome/components
J. Nick Koston 4a4fd8b92c [logger] Fix loop disable optimization using wrong preprocessor guard
The logger loop disable optimization was guarded by USE_LOGGER_USB_CDC,
which is a platform capability flag defined whenever the platform
supports USB CDC. This meant the optimization was disabled on all
ESP32-S2, S3, C3, C5, C6, C61, H2, and P4 variants regardless of
whether USB CDC was actually selected as the hardware UART.

Changed all guards to use USE_LOGGER_UART_SELECTION_USB_CDC which is
only defined when USB CDC is the selected hardware UART. Also changed
the guard logic from || to && so the loop only stays permanently active
when both Zephyr AND USB CDC is selected (the only case that needs
cdc_loop_() to poll port readiness).

Additionally set USE_LOGGER_UART_SELECTION_USB_CDC in the Zephyr
codepath when USB CDC is selected, and updated defines.h for static
analysis coverage.
2026-02-20 13:18:07 -06:00
..
2025-06-11 17:06:45 +12:00
2025-06-11 17:06:45 +12:00
2025-01-22 12:56:51 +13:00
2025-06-11 17:06:45 +12:00
2025-06-11 17:06:45 +12:00
2025-10-22 22:24:17 -04:00
2025-12-08 14:37:45 -05:00
2025-06-11 17:06:45 +12:00
2025-10-06 16:10:46 -04:00
2025-11-04 10:45:32 +13:00
2025-06-11 17:06:45 +12:00
2026-02-10 22:10:29 -05:00
2025-11-01 17:45:42 +11:00
2025-06-11 17:06:45 +12:00
2025-12-08 14:37:45 -05:00
2025-06-11 17:06:45 +12:00