From ed7d6b2995a43630a40607591a5edfe7437f7e0d Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Mon, 18 Jul 2016 17:38:42 +0200 Subject: [PATCH] bug fix: 16 bit returning overflow value instead of -1 for msising packet --- slsDetectorCalibration/eigerHalfModuleData.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorCalibration/eigerHalfModuleData.h b/slsDetectorCalibration/eigerHalfModuleData.h index 0a3fc4b841..56d48e6e73 100644 --- a/slsDetectorCalibration/eigerHalfModuleData.h +++ b/slsDetectorCalibration/eigerHalfModuleData.h @@ -300,7 +300,7 @@ class eigerHalfModuleData : public slsReceiverData { newiy = (iy - (iy%linesperpacket)); header_t = (eiger_packet_header_t*)((char*)(data +(dataMap[newiy][newix]-8))); - if(*( (uint16_t*) header_t->missingpacket)==0xFFFFFFFF){ + if(*( (uint16_t*) header_t->missingpacket)==0xFFFF){ // cprintf(RED,"missing packet\n"); return -1; }