From 095fca6b3d13266e52c910a76486362f04968fa9 Mon Sep 17 00:00:00 2001 From: damage Date: Sun, 25 May 2025 16:03:37 +0200 Subject: [PATCH] cleard to much? I am confused --- controller/ringbuffer.c | 2 ++ controller/ringbuffer.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/controller/ringbuffer.c b/controller/ringbuffer.c index 755a1cc..03c76cd 100644 --- a/controller/ringbuffer.c +++ b/controller/ringbuffer.c @@ -1,3 +1,5 @@ +#include "ringbuffer.h" + void _ringBufferIncReader(struct ringBuffer *buf) { buf->reader += buf->blockSize; if (buf->reader >= buf->buffer + buf->blocks * buf->blockSize) { diff --git a/controller/ringbuffer.h b/controller/ringbuffer.h index 9168b6d..4c19bd3 100644 --- a/controller/ringbuffer.h +++ b/controller/ringbuffer.h @@ -1,4 +1,6 @@ #include +#include +#include #ifdef RINGBUFFER_THREAD_SAFE #include