mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
gui: always mask out gain bit for jungfrau, even if missing packet
This commit is contained in:
parent
d096a5efeb
commit
08b6eb78c5
@ -2234,9 +2234,9 @@ void qDrawPlot::toDoublePixelData(double* dest, char* source,int size, int datab
|
|||||||
// only data plot
|
// only data plot
|
||||||
else {
|
else {
|
||||||
for (ichan = 0; ichan < size; ++ichan) {
|
for (ichan = 0; ichan < size; ++ichan) {
|
||||||
if ( (*((u_int16_t*)source)) == 0xFFFF )
|
/*if ( (*((u_int16_t*)source)) == 0xFFFF )
|
||||||
dest[ichan] = 0xFFFF;
|
dest[ichan] = 0xFFFF;
|
||||||
else
|
else*/
|
||||||
dest[ichan] = ((*((u_int16_t*)source)) & 0x3FFF);
|
dest[ichan] = ((*((u_int16_t*)source)) & 0x3FFF);
|
||||||
source += 2;
|
source += 2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user