video/fb: changed circbuf_write assert to warning

Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
This commit is contained in:
jianglianfang 2024-01-09 14:35:22 +08:00 committed by Xiang Xiao
parent 01219b415c
commit 4d42fdf195

View File

@ -206,7 +206,10 @@ static int fb_add_paninfo(FAR struct fb_chardev_s *fb,
/* Write planeinfo information to the queue. */
ret = circbuf_write(panbuf, info, sizeof(union fb_paninfo_u));
DEBUGASSERT(ret == sizeof(union fb_paninfo_u));
if (ret != sizeof(union fb_paninfo_u))
{
gwarn("WARNING: circbuf_write(panbuf) failed\n");
}
/* Re-enable interrupts */