changeset 593:3a6f922b73ea

Added PrintGraph option to skip invalid data entries: The uint16_t max value 0xFFFF is used to initialize an data array which shall not be printed completly. Only the pixels representing a valid value shall be shown.
author Ideenmodellierer
date Mon, 04 Jan 2021 21:24:24 +0100
parents f52bc70e380f
children 280c11153080
files Discovery/Src/gfx_engine.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/gfx_engine.c	Sun Jan 03 14:43:16 2021 +0100
+++ b/Discovery/Src/gfx_engine.c	Mon Jan 04 21:24:24 2021 +0100
@@ -1365,6 +1365,8 @@
 //		{
 			//output_content[pointer] = colormask;
 			//output_mask[pointer] = true;
+		if(dataTemp != 0xFFFF)	/* do not draw invalid data pixels */
+		{
 			if(w1 > 0)
 			{
 				pDestination_start = (uint16_t*)hgfx->FBStartAdress;
@@ -1462,7 +1464,7 @@
 				}
 			}
 			h_ulong_old = h_ulong;
-//		}
+		}
 		w1++;
 		w2++;
 	}