mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
drivers/video: zero message on MIPI DSI driver
Use memset to clear the msg struct before using on mipi_dsi_dcs_write_buffer. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
This commit is contained in:
parent
6bbb077159
commit
88e7b37328
1 changed files with 1 additions and 1 deletions
|
|
@ -422,10 +422,10 @@ ssize_t mipi_dsi_dcs_write_buffer(FAR struct mipi_dsi_device *device,
|
|||
{
|
||||
struct mipi_dsi_msg msg;
|
||||
|
||||
memset(&msg, 0, sizeof(msg));
|
||||
msg.channel = device->channel;
|
||||
msg.tx_buf = data;
|
||||
msg.tx_len = len;
|
||||
msg.flags = 0;
|
||||
|
||||
switch (len)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue