mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 17:10:03 +02:00
switching off data streaming from command line only in receiver start and not in receiver as a whoel put command
This commit is contained in:
parent
6753f8ba6c
commit
7860637b46
@ -5895,6 +5895,7 @@ string slsDetectorCommand::cmdReceiver(int narg, char *args[], int action) {
|
|||||||
|
|
||||||
if(cmd=="receiver"){
|
if(cmd=="receiver"){
|
||||||
if (action==PUT_ACTION) {
|
if (action==PUT_ACTION) {
|
||||||
|
if(!strcasecmp(args[1],"start")) {
|
||||||
// switch off data streaming to prevent extra images in zmq gui buffer
|
// switch off data streaming to prevent extra images in zmq gui buffer
|
||||||
if (r_online == ONLINE_FLAG) {
|
if (r_online == ONLINE_FLAG) {
|
||||||
if (myDet->enableDataStreamingFromReceiver() != 0) {
|
if (myDet->enableDataStreamingFromReceiver() != 0) {
|
||||||
@ -5903,8 +5904,8 @@ string slsDetectorCommand::cmdReceiver(int narg, char *args[], int action) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!strcasecmp(args[1],"start"))
|
|
||||||
myDet->startReceiver();
|
myDet->startReceiver();
|
||||||
|
}
|
||||||
else if(!strcasecmp(args[1],"stop"))
|
else if(!strcasecmp(args[1],"stop"))
|
||||||
myDet->stopReceiver();
|
myDet->stopReceiver();
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user