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];
// get left and right
int posLeft[3] = {pos[0], pos[1], pos[2]};
int posRight[3] = {pos[0], pos[1] + 1, pos[2]};
int posLeft[3] = {pos[0], Beb_top ? pos[1] : pos[1] + 1, pos[2]};
int posRight[3] = {pos[0], Beb_top ? pos[1] + 1 : pos[1], pos[2]};
if (Beb_quadEnable) {
posRight[0] = 1; // right is next row