changeset 705:158d612a9f4d

Bugfix release frame: The loop to find an free not used frames had an invalid break condition which was never met. It was changed to check every frame once and the exit the loop.
author Ideenmodellierer
date Tue, 01 Nov 2022 09:55:45 +0100
parents f1b40364b0af
children 10b7d271b9c4
files Discovery/Src/gfx_engine.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/gfx_engine.c	Fri Oct 28 20:49:21 2022 +0200
+++ b/Discovery/Src/gfx_engine.c	Tue Nov 01 09:55:45 2022 +0100
@@ -3445,7 +3445,7 @@
 		{
 			i = 0;
 		}
-	}while((i < MAXFRAMES) && (frame[i].status != RELEASED));
+	}while((i != lastFrameProvided) && (frame[i].status != RELEASED));
 
 
 	if((i < MAXFRAMES) && (frame[i].status == RELEASED))