forked from espressif/esp-idf
Merge branch 'docs/fix_ringbuf_doc_xringbuffersendcomplete' into 'master'
docs(esp_ringbuf): Fixed incorrect documentation for xRingBufferSendComplete() Closes IDFGH-14191 See merge request espressif/esp-idf!35497
This commit is contained in:
@@ -111,7 +111,7 @@ The following example demonstrates the usage of :cpp:func:`xRingbufferSendAcquir
|
|||||||
.buf = item->buf,
|
.buf = item->buf,
|
||||||
};
|
};
|
||||||
//Actually send to the ring buffer for consumer to use
|
//Actually send to the ring buffer for consumer to use
|
||||||
res = xRingbufferSendComplete(buf_handle, &item);
|
res = xRingbufferSendComplete(buf_handle, (void *)item);
|
||||||
if (res != pdTRUE) {
|
if (res != pdTRUE) {
|
||||||
printf("Failed to send item\n");
|
printf("Failed to send item\n");
|
||||||
}
|
}
|
||||||
|
@@ -111,7 +111,7 @@ ESP-IDF 环形 buffer 是一个典型的 FIFO buffer,支持任意大小的数
|
|||||||
.buf = item->buf,
|
.buf = item->buf,
|
||||||
};
|
};
|
||||||
//实际发送到环形 buffer 以供使用
|
//实际发送到环形 buffer 以供使用
|
||||||
res = xRingbufferSendComplete(buf_handle, &item);
|
res = xRingbufferSendComplete(buf_handle, (void *)item);
|
||||||
if (res != pdTRUE) {
|
if (res != pdTRUE) {
|
||||||
printf("Failed to send item\n");
|
printf("Failed to send item\n");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user