mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 17:19:20 +01:00
jungfrau server: changes for old and new boards
This commit is contained in:
@@ -39,6 +39,9 @@ u_int64_t getFirmwareAPIVersion();
|
||||
u_int16_t getHardwareVersionNumber();
|
||||
u_int16_t getHardwareSerialNumber();
|
||||
#endif
|
||||
#ifdef JUNGFRAUD
|
||||
int isHardwareVersion2();
|
||||
#endif
|
||||
u_int32_t getDetectorNumber();
|
||||
u_int64_t getDetectorMAC();
|
||||
u_int32_t getDetectorIP();
|
||||
|
||||
@@ -2012,7 +2012,7 @@ int set_speed(int file_des) {
|
||||
}
|
||||
#endif
|
||||
#ifdef JUNGFRAUD
|
||||
if (ret == OK && ind == CLOCK_DIVIDER && val == FULL_SPEED && getHardwareVersionNumber() != BOARD_VERSION_2_VAL) {
|
||||
if (ret == OK && ind == CLOCK_DIVIDER && val == FULL_SPEED && isHardwareVersion2()) {
|
||||
ret = FAIL;
|
||||
strcpy(mess, "Full speed not implemented for this board version.\n");
|
||||
FILE_LOG(logERROR,(mess));
|
||||
|
||||
Reference in New Issue
Block a user