bug fix for previous commit to work for bottom module

This commit is contained in:
2019-07-10 17:56:32 +02:00
parent 1189b991e5
commit 445f3c66fd
4 changed files with 4 additions and 4 deletions

View File

@ -1233,8 +1233,8 @@ int Beb_SetDetectorPosition(int pos[]) {
Beb_positions[2] = pos[2]; Beb_positions[2] = pos[2];
// get left and right // get left and right
int posLeft[3] = {pos[0], pos[1], pos[2]}; int posLeft[3] = {pos[0], Beb_top ? pos[1] : pos[1] + 1, pos[2]};
int posRight[3] = {pos[0], pos[1] + 1, pos[2]}; int posRight[3] = {pos[0], Beb_top ? pos[1] + 1 : pos[1], pos[2]};
if (Beb_quadEnable) { if (Beb_quadEnable) {
posRight[0] = 1; // right is next row posRight[0] = 1; // right is next row

View File

@ -330,7 +330,7 @@ public:
} }
#ifdef VERBOSE #ifdef VERBOSE
//if(!index) if(!index)
cprintf(BLUE,"%d : Streamer: buf: %s\n", index, buf); cprintf(BLUE,"%d : Streamer: buf: %s\n", index, buf);
#endif #endif

View File

@ -282,7 +282,7 @@ int DataStreamer::SendHeader(sls_receiver_header* rheader, uint32_t size, uint32
header.modId, header.row, header.column, header.reserved, header.modId, header.row, header.column, header.reserved,
header.debug, header.roundRNumber, header.debug, header.roundRNumber,
header.detType, header.version, header.detType, header.version,
gapPixelsEnable ? 1 : 0, flippedData, *gapPixelsEnable ? 1 : 0, flippedData,
additionJsonHeader additionJsonHeader
); );
} }