mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
made ports reusable and added cannot connect to these ports in error class
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@453 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -23,6 +23,11 @@ using namespace std;
|
||||
|
||||
#define CANNOT_CONNECT_TO_DETECTOR 0x8000000000000000ULL
|
||||
#define CANNOT_CONNECT_TO_RECEIVER 0x4000000000000000ULL
|
||||
#define COULDNOT_SET_CONTROL_PORT 0x2000000000000000ULL
|
||||
#define COULDNOT_SET_STOP_PORT 0x1000000000000000ULL
|
||||
#define COULDNOT_SET_DATA_PORT 0x0800000000000000ULL
|
||||
|
||||
|
||||
#define COULD_NOT_CONFIGURE_MAC 0x0000000000000001ULL
|
||||
|
||||
|
||||
@ -50,9 +55,21 @@ public:
|
||||
if(slsErrorMask&CANNOT_CONNECT_TO_RECEIVER)
|
||||
retval.append("Cannot connect to Receiver\n");
|
||||
|
||||
if(slsErrorMask&COULDNOT_SET_CONTROL_PORT)
|
||||
retval.append("Could not set control port\n");
|
||||
|
||||
if(slsErrorMask&COULDNOT_SET_STOP_PORT)
|
||||
retval.append("Could not set stop port\n");
|
||||
|
||||
if(slsErrorMask&COULDNOT_SET_DATA_PORT)
|
||||
retval.append("Could not set receiver port\n");
|
||||
|
||||
|
||||
if(slsErrorMask&COULD_NOT_CONFIGURE_MAC)
|
||||
retval.append("Could not configure mac\n");
|
||||
|
||||
|
||||
|
||||
return retval;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user