Veranderingen om CCS blij te maken

This commit is contained in:
Dennis Boekholtz
2024-04-13 23:16:24 +02:00
parent 64a72b70ef
commit 2495ac6ee6
3 changed files with 11 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
#include "FIFOBuffChar.h"
#include "C:\Users\denbo\git\ems31_2023-2024_groep_09_ccs\ ems31_2023-2024_groep_09_submodules_2\FIFOBuff\FIFOBuffChar.h"
#include <stdlib.h>
#include <stddef.h>
@@ -141,6 +141,7 @@ bool FIFOBuffChar_pop(FIFOBuffChar_t *fifo)
default: // buffer is at least 2 element big
// find the second last element
{
FIFOBuffChar_element_t* secondLastEl = fifo->FirstEl_p;
while (
secondLastEl->nextElement != fifo->LastEl_p
@@ -158,6 +159,7 @@ bool FIFOBuffChar_pop(FIFOBuffChar_t *fifo)
fifo->size--;
ok = true;
break;
}
}
return ok;