mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-29 09:30:02 +02:00
fixed bug where settings complain if tau not in file even if its is not activated
This commit is contained in:
parent
b693279388
commit
3f157b8f62
Binary file not shown.
@ -1917,15 +1917,13 @@ int set_module(int file_des) {
|
|||||||
|
|
||||||
//switch off rate correction: no value read from load calib/load settings)
|
//switch off rate correction: no value read from load calib/load settings)
|
||||||
if(myTau == -1){
|
if(myTau == -1){
|
||||||
ret = FAIL;
|
|
||||||
if(getRateCorrectionEnable()){
|
if(getRateCorrectionEnable()){
|
||||||
|
ret = FAIL;
|
||||||
setRateCorrection(0);
|
setRateCorrection(0);
|
||||||
strcat(mess," Cannot set Rate correction. No default tau provided. Deactivating Rate Correction\n");
|
strcat(mess," Cannot set Rate correction. No default tau provided. Deactivating Rate Correction\n");
|
||||||
}else{
|
|
||||||
strcat(mess," Cannot set Rate correction. No default tau provided\n");
|
|
||||||
}
|
|
||||||
cprintf(RED,"%s",mess);
|
cprintf(RED,"%s",mess);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//normal tau value (only if enabled)
|
//normal tau value (only if enabled)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user