# HG changeset patch # User Ideenmodellierer # Date 1609791864 -3600 # Node ID 3a6f922b73ea4c3704ebdd82a0827e4ed8721649 # Parent f52bc70e380fbd5ef3d094d49b32840a82b0d0f6 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. diff -r f52bc70e380f -r 3a6f922b73ea Discovery/Src/gfx_engine.c --- 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++; }