buff put & get vergeten te veranderen
This commit is contained in:
parent
ee4f92b225
commit
5e3bb0ca45
@ -56,7 +56,7 @@ bool FIFOBuffChar_put(FIFOBuffChar_t *fifo, char i) // Change the function param
|
|||||||
//TODO: this while loop is unsave
|
//TODO: this while loop is unsave
|
||||||
while (fifo->FirstEl_p != NULL)
|
while (fifo->FirstEl_p != NULL)
|
||||||
{
|
{
|
||||||
buffer_get(NULL);
|
FIFOBuffChar_get(fifo, NULL); // Replace buffer_get with FIFOBuffChar_get
|
||||||
}
|
}
|
||||||
if (fifo->LastEl_p != NULL)
|
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;
|
fifo->LastEl_p = NULL;
|
||||||
printf("buffer_dyn - buffer_put(): ERROR: last pointer is NULL\n");
|
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;
|
ok = false;
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user