fixed bug where settings complain if tau not in file even if its is not activated

This commit is contained in:
Dhanya Maliakal 2016-07-20 14:39:43 +02:00
parent b693279388
commit 3f157b8f62
2 changed files with 2 additions and 4 deletions

View File

@ -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)