Compare commits

...

2 Commits

Author SHA1 Message Date
8cbd64034b prevent multi include 2025-05-25 16:19:52 +02:00
99c2f4f0d4 prevent multi include 2025-05-25 16:19:28 +02:00
3 changed files with 6 additions and 0 deletions

View File

@ -13,7 +13,9 @@
#include <stdlib.h>
#include "global.h"
#ifndef RINGBUFFER_H
#include "ringbuffer.h"
#endif
#define IIC_DEVICE "/dev/i2c-7"
#define BUFFER_BLOCKS 128

View File

@ -1,4 +1,6 @@
#ifndef RINGBUFFER_H
#include "ringbuffer.h"
#endif
void _ringBufferIncReader(struct ringBuffer *buf) {
buf->reader += buf->blockSize;

View File

@ -6,6 +6,8 @@
#include <pthread.h>
#endif
#define RINGBUFFER_H
struct ringBuffer {
void *buffer;
int blocks;