Add new variable for CIRC_BUF_SIZE

This commit is contained in:
zenon 2018-06-07 16:48:04 +02:00
parent 1fbd1bf2b8
commit ed71c16797

View File

@ -35,12 +35,13 @@
#define SEM_WRITE_END "/sem_write_end_01527193" #define SEM_WRITE_END "/sem_write_end_01527193"
#define MAX_ITEMS 16 #define MAX_ITEMS 16
#define CIRC_BUF_SIZE 17
struct circ_buf { struct circ_buf {
int quit; int quit;
int head; int head;
int tail; int tail;
int data[MAX_ITEMS+1]; int data[CIRC_BUF_SIZE];
}; };
#endif /* ifndef COMMON_H */ #endif /* ifndef COMMON_H */