nxcamera: Solve compilation errors caused by type mismatch

CC:  nxcamera.c nxcamera.c: In function 'show_image':
nxcamera.c:85:20: error: initialization of 'uint32_t *' {aka 'unsigned int *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Werror=incompatible-pointer-types]
   85 |   uint32_t *pbuf = pcam->bufs[buf->index];
      |                    ^~~~
cc1: all warnings being treated as errors

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
This commit is contained in:
yangsen5 2023-06-29 11:19:43 +08:00 committed by Xiang Xiao
parent 3c674fb4d8
commit 78792120cd

View file

@ -161,7 +161,7 @@ err:
return 0;
#else
uint32_t *pbuf = pcam->bufs[buf->index];
FAR uint32_t *pbuf = (FAR uint32_t *)pcam->bufs[buf->index];
vinfo("show image from %p: %" PRIx32 " %" PRIx32, pbuf, pbuf[0], pbuf[1]);
return 0;
#endif