mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +02:00
some changes
This commit is contained in:
parent
8bb0249d5b
commit
5de9ade51d
@ -911,14 +911,15 @@ int slsReceiverTCPIPInterface::stop_receiver(){
|
|||||||
|
|
||||||
int slsReceiverTCPIPInterface::get_status(){
|
int slsReceiverTCPIPInterface::get_status(){
|
||||||
ret=OK;
|
ret=OK;
|
||||||
enum runStatus retval = ERROR;
|
int retval=-1;
|
||||||
|
enum runStatus s=ERROR;
|
||||||
|
|
||||||
// execute action if the arguments correctly arrived
|
// execute action if the arguments correctly arrived
|
||||||
#ifdef SLS_RECEIVER_UDP_FUNCTIONS
|
#ifdef SLS_RECEIVER_UDP_FUNCTIONS
|
||||||
if (receiverBase == NULL){
|
if (receiverBase == NULL){
|
||||||
strcpy(mess,SET_RECEIVER_ERR_MESSAGE);
|
strcpy(mess,SET_RECEIVER_ERR_MESSAGE);
|
||||||
ret=FAIL;
|
ret=FAIL;
|
||||||
}else retval=receiverBase->getStatus();
|
}else s=receiverBase->getStatus();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(ret==OK && socket->differentClients){
|
if(ret==OK && socket->differentClients){
|
||||||
@ -932,6 +933,7 @@ int slsReceiverTCPIPInterface::get_status(){
|
|||||||
cprintf(RED, "%s\n", mess);
|
cprintf(RED, "%s\n", mess);
|
||||||
socket->SendDataOnly(mess,sizeof(mess));
|
socket->SendDataOnly(mess,sizeof(mess));
|
||||||
}
|
}
|
||||||
|
retval = (runStatus(s))
|
||||||
socket->SendDataOnly(&retval,sizeof(retval));
|
socket->SendDataOnly(&retval,sizeof(retval));
|
||||||
//return ok/fail
|
//return ok/fail
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user