diff Discovery/Src/gfx_engine.c @ 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 01f40cb1057e
children 5071d554aaa5
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))