Merge pull request #1145 from slsdetectorgroup/dev/xilinx_ctb_api

add xilinx ctb api to --versions command
This commit is contained in:
maliakal_d 2025-03-13 13:15:04 +01:00 committed by GitHub
commit 5a8213024e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 4 deletions

View File

@ -148,6 +148,8 @@ int main(int argc, char *argv[]) {
strcpy(version, APIMYTHEN3);
#elif GOTTHARD2D
strcpy(version, APIGOTTHARD2);
#elif XILINX_CHIPTESTBOARDD
strcpy(version, APIXILINXCTB);
#endif
LOG(logINFO, ("SLS Detector Server Version: %s\n", version));
exit(EXIT_SUCCESS);

View File

@ -917,8 +917,8 @@ void Implementation::CreateUDPSockets() {
void Implementation::SetupWriter() {
try {
//check if filePath empty and throw error
if(filePath.empty()){
// check if filePath empty and throw error
if (filePath.empty()) {
throw ReceiverError("File path cannot be empty");
}
// check if folder exists and throw if it cant create

View File

@ -7,6 +7,6 @@
#define APIGOTTHARD2 "developer 0x250310"
#define APIMYTHEN3 "developer 0x250310"
#define APIMOENCH "developer 0x250310"
#define APIXILINXCTB "developer 0x250310"
#define APIEIGER "developer 0x250310"
#define APIJUNGFRAU "developer 0x250311"
#define APIXILINXCTB "developer 0x250311"