This commit is contained in:
2021-10-06 17:51:25 +02:00
parent fcfbb7040a
commit e2d7d12b3e
3 changed files with 7 additions and 7 deletions

View File

@ -2047,17 +2047,17 @@ int setAllTrimbits(int val) {
}
int getAllTrimbits() {
int value = *((detectorModules->chanregs));
if (detectorModules) {
int value = (*((detectorModules->chanregs)));
for (int ichan = 0; ichan < (detectorModules->nchan); ichan++) {
if (*((detectorModules->chanregs) + ichan) != value) {
value = -1;
break;
return -1;
}
}
LOG(logINFO, ("Value of all Trimbits: %d\n", value));
return value;
}
LOG(logINFO, ("Value of all Trimbits: %d\n", value));
return value;
return -1;
}
int getBebFPGATemp() {