[am43][lightwaverf][rf_bridge][spi_led_strip] Replace sprintf with safe alternatives

This commit is contained in:
J. Nick Koston
2026-01-16 14:01:48 -10:00
parent 0d329f4f4d
commit b7983b4774
@@ -45,6 +45,7 @@ void LightWaveRF::send_rx(const std::vector<uint8_t> &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() {