_canio: Message: Setting data should set the size to match
This commit is contained in:
parent
a2e1867f69
commit
65ca1c7bbc
@ -58,6 +58,7 @@ const void *common_hal_canio_message_data_get(const canio_message_obj_t *self)
|
||||
|
||||
const void common_hal_canio_message_data_set(canio_message_obj_t *self, const void *data, size_t size)
|
||||
{
|
||||
self->size = size;
|
||||
memcpy(self->data, data, size);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user