comparison Discovery/Src/gfx_engine.c @ 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 3860b8fa4b29
children 82d58470fd94
comparison
equal deleted inserted replaced
592:f52bc70e380f 593:3a6f922b73ea
1363 // hw 160519 wof�r ist das? Damit funktioniert Temperatur 25,5�C nicht! 1363 // hw 160519 wof�r ist das? Damit funktioniert Temperatur 25,5�C nicht!
1364 // if((dataMax == 255) || (data[w2] != 255)) 1364 // if((dataMax == 255) || (data[w2] != 255))
1365 // { 1365 // {
1366 //output_content[pointer] = colormask; 1366 //output_content[pointer] = colormask;
1367 //output_mask[pointer] = true; 1367 //output_mask[pointer] = true;
1368 if(dataTemp != 0xFFFF) /* do not draw invalid data pixels */
1369 {
1368 if(w1 > 0) 1370 if(w1 > 0)
1369 { 1371 {
1370 pDestination_start = (uint16_t*)hgfx->FBStartAdress; 1372 pDestination_start = (uint16_t*)hgfx->FBStartAdress;
1371 if(!pSettings->FlipDisplay) 1373 if(!pSettings->FlipDisplay)
1372 { 1374 {
1460 } 1462 }
1461 } 1463 }
1462 } 1464 }
1463 } 1465 }
1464 h_ulong_old = h_ulong; 1466 h_ulong_old = h_ulong;
1465 // } 1467 }
1466 w1++; 1468 w1++;
1467 w2++; 1469 w2++;
1468 } 1470 }
1469 } 1471 }
1470 1472