mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-06 14:14:33 +02:00
docs(esp_ringbuf): Fixed incorrect documentation for xRingBufferSendComplete()
Closes https://github.com/espressif/esp-idf/issues/14990
This commit is contained in:
@@ -111,7 +111,7 @@ The following example demonstrates the usage of :cpp:func:`xRingbufferSendAcquir
|
||||
.buf = item->buf,
|
||||
};
|
||||
//Actually send to the ring buffer for consumer to use
|
||||
res = xRingbufferSendComplete(buf_handle, &item);
|
||||
res = xRingbufferSendComplete(buf_handle, (void *)item);
|
||||
if (res != pdTRUE) {
|
||||
printf("Failed to send item\n");
|
||||
}
|
||||
|
@@ -111,7 +111,7 @@ ESP-IDF 环形 buffer 是一个典型的 FIFO buffer,支持任意大小的数
|
||||
.buf = item->buf,
|
||||
};
|
||||
//实际发送到环形 buffer 以供使用
|
||||
res = xRingbufferSendComplete(buf_handle, &item);
|
||||
res = xRingbufferSendComplete(buf_handle, (void *)item);
|
||||
if (res != pdTRUE) {
|
||||
printf("Failed to send item\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user