mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 07:17:13 +02:00
modified getDetectorType function name in slsDetector to be able to make a getDetectorType(pos) function for multiSlsDetector
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@176 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -325,6 +325,7 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdDetectorSize;
|
||||
i++;
|
||||
|
||||
|
||||
/* flags */
|
||||
|
||||
descrToFuncMap[i].m_pFuncName="flags";
|
||||
@ -361,6 +362,7 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
|
||||
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdSN;
|
||||
i++;
|
||||
|
||||
|
||||
/* digital test and debugging */
|
||||
|
||||
descrToFuncMap[i].m_pFuncName="digitest"; // /* find command! */
|
||||
@ -2192,7 +2194,7 @@ string slsDetectorCommand::cmdDetectorSize(int narg, char *args[], int action) {
|
||||
// portType index;
|
||||
|
||||
if (action==PUT_ACTION) {
|
||||
if (cmd=="maxmod")
|
||||
if (cmd=="maxmod")
|
||||
return string("cannot put!");
|
||||
|
||||
if (sscanf(args[1],"%d",&val))
|
||||
@ -2373,7 +2375,7 @@ string slsDetectorCommand::cmdSN(int narg, char *args[], int action) {
|
||||
if (cmd=="thisversion"){
|
||||
sprintf(answer,"%llx",myDet->getId(THIS_SOFTWARE_VERSION));
|
||||
return string(answer);
|
||||
}
|
||||
}
|
||||
|
||||
myDet->setOnline(ONLINE_FLAG);
|
||||
|
||||
|
Reference in New Issue
Block a user