Skip to content

Fix ring buffer compilation error #994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix ring buffer compilation error
  • Loading branch information
kchugalinskiy committed Jul 27, 2020
commit f4aef539860dc8ba22ee4b9e6abf4cfdeb9b0775
2 changes: 1 addition & 1 deletion cpp_utils/FreeRTOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ void FreeRTOS::Semaphore::setName(std::string name) {
* @param [in] length The amount of storage to allocate for the ring buffer.
* @param [in] type The type of buffer. One of RINGBUF_TYPE_NOSPLIT, RINGBUF_TYPE_ALLOWSPLIT, RINGBUF_TYPE_BYTEBUF.
*/
Ringbuffer::Ringbuffer(size_t length, ringbuf_type_t type) {
Ringbuffer::Ringbuffer(size_t length, RingbufferType_t type) {
m_handle = ::xRingbufferCreate(length, type);
} // Ringbuffer

Expand Down
2 changes: 1 addition & 1 deletion cpp_utils/FreeRTOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class FreeRTOS {
*/
class Ringbuffer {
public:
Ringbuffer(size_t length, ringbuf_type_t type = RINGBUF_TYPE_NOSPLIT);
Ringbuffer(size_t length, RingbufferType_t type = RINGBUF_TYPE_NOSPLIT);
~Ringbuffer();

void* receive(size_t* size, TickType_t wait = portMAX_DELAY);
Expand Down