From 5e3bb0ca4553ac614e270a20201596d1cd993ac3 Mon Sep 17 00:00:00 2001 From: Dennis Boekholtz <1017359@hr.nl> Date: Sat, 6 Apr 2024 19:27:07 +0200 Subject: [PATCH] buff put & get vergeten te veranderen --- FIFOBuff/FIFOBuffChar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FIFOBuff/FIFOBuffChar.c b/FIFOBuff/FIFOBuffChar.c index 2c95216..401f2c5 100644 --- a/FIFOBuff/FIFOBuffChar.c +++ b/FIFOBuff/FIFOBuffChar.c @@ -56,7 +56,7 @@ bool FIFOBuffChar_put(FIFOBuffChar_t *fifo, char i) // Change the function param //TODO: this while loop is unsave while (fifo->FirstEl_p != NULL) { - buffer_get(NULL); + FIFOBuffChar_get(fifo, NULL); // Replace buffer_get with FIFOBuffChar_get } if (fifo->LastEl_p != NULL) { @@ -64,7 +64,7 @@ bool FIFOBuffChar_put(FIFOBuffChar_t *fifo, char i) // Change the function param fifo->LastEl_p = NULL; printf("buffer_dyn - buffer_put(): ERROR: last pointer is NULL\n"); } - buffer_put(i); + FIFOBuffChar_put(fifo, i); // Replace buffer_put with FIFOBuffChar_put ok = false; } return ok;