mirror of
https://github.com/esphome/esphome.git
synced 2026-07-11 01:15:33 +00:00
[am43][lightwaverf][rf_bridge][spi_led_strip] Replace sprintf with safe alternatives
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user