Merge pull request #1157 from slsdetectorgroup/910/jf_timing_decoder_only_hw2.0
CMake / Configure and build using cmake (push) Failing after 12s

jf: get timing info decoder only for hw 2.0
This commit is contained in:
maliakal_d authored and GitHub committed 2025-03-18 12:31:45 +01:00
commit 34ce96ffa0
2 files changed
+11 -4

No files matched your search

@@ -11090,11 +11090,18 @@ int get_timing_info_decoder(int file_des) {
functionNotImplemented();
#else
// get only
ret = getTimingInfoDecoder(&retval);
LOG(logDEBUG1, ("retval timing info decoder: %d\n", retval));
if (ret == FAIL) {
strcpy(mess, "Could not get timing info decoder\n");
if (isHardwareVersion_1_0()) {
ret = FAIL;
sprintf(mess, "Could not get timing info decoder. Not supported "
"for hardware version 1.0\n");
LOG(logERROR, (mess));
} else {
ret = getTimingInfoDecoder(&retval);
LOG(logDEBUG1, ("retval timing info decoder: %d\n", retval));
if (ret == FAIL) {
strcpy(mess, "Could not get timing info decoder\n");
LOG(logERROR, (mess));
}
}
#endif
return Server_SendResult(file_des, INT32, &retval, sizeof(retval));