mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 11:53:25 +08:00
8cfe8a0f3e
In circbuf_get_read/writeptr, when circbuf is full, off == pos, and *size = off - pos = 0. So add circbuf_is_full() condition to return correct *size. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>