mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
eiger virtual server fix
This commit is contained in:
parent
9a1fdc4104
commit
d8ca9bb6b5
@ -227,9 +227,7 @@ u_int64_t getFirmwareAPIVersion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void readDetectorNumber() {
|
void readDetectorNumber() {
|
||||||
#ifdef VIRTUAL
|
#ifndef VIRTUAL
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
char output[255];
|
char output[255];
|
||||||
FILE *sysFile = popen(IDFILECOMMAND, "r");
|
FILE *sysFile = popen(IDFILECOMMAND, "r");
|
||||||
fgets(output, sizeof(output), sysFile);
|
fgets(output, sizeof(output), sysFile);
|
||||||
@ -238,6 +236,7 @@ void readDetectorNumber() {
|
|||||||
if (isControlServer) {
|
if (isControlServer) {
|
||||||
LOG(logINFOBLUE, ("Detector ID: %u\n", detid));
|
LOG(logINFOBLUE, ("Detector ID: %u\n", detid));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
u_int32_t getDetectorNumber() {
|
u_int32_t getDetectorNumber() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user