esp32_can: suppress compiler warning (#7372)

This commit is contained in:
Mariusz Kryński 2024-08-29 02:52:13 +02:00 committed by GitHub
parent 4b2032a98e
commit b3f03c07c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);