fixed eiger virtual software versions

This commit is contained in:
maliakal_d 2019-10-04 09:41:21 +02:00
parent e4645a8273
commit 696073b505
6 changed files with 16 additions and 19 deletions

View File

@ -1,9 +1,9 @@
Path: slsDetectorsPackage/slsDetectorSoftware/eigerDetectorServer
URL: origin git@github.com:slsdetectorgroup/slsDetectorPackage.git
Repository Root: origin git@github.com:slsdetectorgroup/slsDetectorPackage.git
Repsitory UUID: 2a88bc6a1eac9777390af1d1fb9aa02960ebfe2d
Revision: 359
Repsitory UUID: e4645a8273c8265bc584579d5f7f8eb6dc4379f7
Revision: 360
Branch: 4.1.0-rc
Last Changed Author: Dhanya_Thattil
Last Changed Rev: 4130
Last Changed Date: 2019-08-14 09:25:41.000000001 +0200 ./xparameters.h
Last Changed Author: GitHub_GitHub
Last Changed Rev: 4138
Last Changed Date: 2019-10-04 09:28:27.000000001 +0200 ./xparameters.h

View File

@ -1,6 +1,6 @@
#define GITURL "git@github.com:slsdetectorgroup/slsDetectorPackage.git"
#define GITREPUUID "2a88bc6a1eac9777390af1d1fb9aa02960ebfe2d"
#define GITAUTH "Dhanya_Thattil"
#define GITREV 0x4130
#define GITDATE 0x20190814
#define GITREPUUID "e4645a8273c8265bc584579d5f7f8eb6dc4379f7"
#define GITAUTH "GitHub_GitHub"
#define GITREV 0x4138
#define GITDATE 0x20191004
#define GITBRANCH "4.1.0-rc"

View File

@ -10,11 +10,11 @@
#endif
#include "slsDetectorFunctionList.h"
#ifndef VIRTUAL
#include "versionAPI.h"
#include "gitInfoEiger.h"
#ifndef VIRTUAL
#include "FebControl.h"
#include "Beb.h"
#include "versionAPI.h"
#endif
int default_tau_from_file= -1;
@ -200,19 +200,18 @@ void checkFirmwareCompatibility(int flag){
/* Ids */
int64_t getDetectorId(enum idMode arg){
#ifdef VIRTUAL
return 0;
#else
int64_t retval = -1;
int64_t retval = 0;
switch(arg){
case DETECTOR_SERIAL_NUMBER:
retval = getDetectorNumber();/** to be implemented with mac? */
break;
case DETECTOR_FIRMWARE_VERSION:
return (int64_t)getFirmwareVersion();
return (int64_t)getFirmwareVersion();
case SOFTWARE_FIRMWARE_API_VERSION:
#ifndef VIRTUAL
return (int64_t)Beb_GetFirmwareSoftwareAPIVersion();
#endif
case DETECTOR_SOFTWARE_VERSION:
return (GITDATE & 0xFFFFFF);
case CLIENT_SOFTWARE_API_VERSION:
@ -220,9 +219,7 @@ int64_t getDetectorId(enum idMode arg){
default:
break;
}
return retval;
#endif
return retval;
}
u_int64_t getFirmwareVersion() {