bugfix, always 12 dr

This commit is contained in:
maliakal_d 2022-02-23 09:58:55 +01:00
parent 92beb3aa2a
commit a936cc26cc

View File

@ -1228,8 +1228,7 @@ int Feb_Control_GetDynamicRange(unsigned int *retval) {
*retval = 4; *retval = 4;
} else if (DAQ_STATIC_BIT_M8 & Feb_Control_staticBits) { } else if (DAQ_STATIC_BIT_M8 & Feb_Control_staticBits) {
*retval = 8; *retval = 8;
} } else {
int disable16 = 0; int disable16 = 0;
if (!Feb_Control_Get16bitConversionDisabled(&disable16)) { if (!Feb_Control_Get16bitConversionDisabled(&disable16)) {
LOG(logERROR, ("Could not get dynamic range (12 or 16 bit)\n")); LOG(logERROR, ("Could not get dynamic range (12 or 16 bit)\n"));
@ -1240,6 +1239,7 @@ int Feb_Control_GetDynamicRange(unsigned int *retval) {
} else { } else {
*retval = 16; *retval = 16;
} }
}
return 1; return 1;
} }