From b7983b4774a7863949e5ea5f2e85d328142bcdd6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 16 Jan 2026 14:01:48 -1000 Subject: [PATCH] [am43][lightwaverf][rf_bridge][spi_led_strip] Replace sprintf with safe alternatives --- esphome/components/lightwaverf/lightwaverf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/components/lightwaverf/lightwaverf.cpp b/esphome/components/lightwaverf/lightwaverf.cpp index 6c427b7f95..2b44195c97 100644 --- a/esphome/components/lightwaverf/lightwaverf.cpp +++ b/esphome/components/lightwaverf/lightwaverf.cpp @@ -45,6 +45,7 @@ void LightWaveRF::send_rx(const std::vector &msg, uint8_t repeats, bool } void LightWaveRF::print_msg_(uint8_t *msg, uint8_t len) { +#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_DEBUG char buffer[65]; // max 10 entries * 6 chars + null ESP_LOGD(TAG, " Received code (len:%i): ", len); @@ -53,6 +54,7 @@ void LightWaveRF::print_msg_(uint8_t *msg, uint8_t len) { pos = buf_append_printf(buffer, sizeof(buffer), pos, "0x%02x, ", msg[i]); } ESP_LOGD(TAG, "[%s]", buffer); +#endif } void LightWaveRF::dump_config() {