mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-04 00:50:42 +02:00
7.0.3.rc: execute command inside server fixed (from fix simulator tests and exec command PR) (#855)
* execute command inside server fixed (from fix simulator tests and exec command PR)
This commit is contained in:
parent
8174fc9691
commit
af3dc1e7f4
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -17,7 +17,7 @@ const char *getRetName();
|
||||
void function_table();
|
||||
void functionNotImplemented();
|
||||
void modeNotImplemented(char *modename, int mode);
|
||||
void executeCommand(char *command, char *result, enum TLogLevel level);
|
||||
int executeCommand(char *command, char *result, enum TLogLevel level);
|
||||
int M_nofunc(int);
|
||||
#if defined(MYTHEN3D) || defined(GOTTHARD2D)
|
||||
void rebootNiosControllerAndFPGA();
|
||||
|
@ -499,7 +499,7 @@ void modeNotImplemented(char *modename, int mode) {
|
||||
LOG(logERROR, (mess));
|
||||
}
|
||||
|
||||
void executeCommand(char *command, char *result, enum TLogLevel level) {
|
||||
int executeCommand(char *command, char *result, enum TLogLevel level) {
|
||||
ret = OK;
|
||||
memset(mess, 0, sizeof(mess));
|
||||
|
||||
@ -518,7 +518,7 @@ void executeCommand(char *command, char *result, enum TLogLevel level) {
|
||||
if (sysFile == NULL) {
|
||||
ret = FAIL;
|
||||
sprintf(mess, "Executing cmd[%s] failed\n", cmd);
|
||||
return;
|
||||
return ret;
|
||||
}
|
||||
while (fgets(temp, tempsize, sysFile) != NULL) {
|
||||
// size left excludes terminating character
|
||||
@ -543,6 +543,7 @@ void executeCommand(char *command, char *result, enum TLogLevel level) {
|
||||
} else {
|
||||
LOG(level, ("Result:\n[%s]\n", result));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int M_nofunc(int file_des) {
|
||||
|
@ -4,10 +4,10 @@
|
||||
#define RELEASE "7.0.3"
|
||||
#define APILIB "7.0.3 0x231024"
|
||||
#define APIRECEIVER "7.0.3 0x231024"
|
||||
#define APICTB "7.0.3 0x231031"
|
||||
#define APIGOTTHARD "7.0.3 0x231031"
|
||||
#define APIGOTTHARD2 "7.0.3 0x231031"
|
||||
#define APIJUNGFRAU "7.0.3 0x231031"
|
||||
#define APIMYTHEN3 "7.0.3 0x231031"
|
||||
#define APIMOENCH "7.0.3 0x231031"
|
||||
#define APIEIGER "7.0.3 0x231031"
|
||||
#define APICTB "7.0.3 0x231107"
|
||||
#define APIGOTTHARD "7.0.3 0x231107"
|
||||
#define APIGOTTHARD2 "7.0.3 0x231107"
|
||||
#define APIJUNGFRAU "7.0.3 0x231107"
|
||||
#define APIMYTHEN3 "7.0.3 0x231107"
|
||||
#define APIMOENCH "7.0.3 0x231107"
|
||||
#define APIEIGER "7.0.3 0x231107"
|
||||
|
Loading…
x
Reference in New Issue
Block a user