mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
esp32_can: suppress compiler warning (#7372)
This commit is contained in:
parent
4b2032a98e
commit
b3f03c07c6
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ canbus::Error ESP32Can::send_message(struct canbus::CanFrame *frame) {
|
|||
.flags = flags,
|
||||
.identifier = frame->can_id,
|
||||
.data_length_code = frame->can_data_length_code,
|
||||
.data = {}, // to suppress warning, data is initialized properly below
|
||||
};
|
||||
if (!frame->remote_transmission_request) {
|
||||
memcpy(message.data, frame->data, frame->can_data_length_code);
|
||||
|
|
Loading…
Reference in a new issue