From 0eb57b99d20ec884c86278ae9631f98d0502d9bc Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Wed, 8 Sep 2021 18:53:13 +0200 Subject: [PATCH] wip --- .../src/slsDetectorServer_funcs.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c index efcb2436b..c39dd48b0 100644 --- a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c +++ b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c @@ -3798,6 +3798,20 @@ int program_fpga(int file_des) { return FAIL; } + { + char cmd[MAX_STR_LENGTH] = {0}; + char retvals[MAX_STR_LENGTH] = {0}; + strcpy(cmd, "ls -lrt /var/tmp/"); + if (FAIL == executeCommand(cmd, retvals, logDEBUG1)) { + sprintf( + mess, + "Could not program fpga. (could not delete old file: %s)", + retvals); + LOG(logERROR, (mess)); + return FAIL; + } + } + // copy to flash ret = copyToFlash(checksum, mess); Server_SendResult(file_des, INT32, NULL, 0);