This commit is contained in:
2024-09-26 15:39:49 +02:00
parent 492b4815a6
commit 007330caa7
9 changed files with 42 additions and 44 deletions

View File

@ -206,13 +206,11 @@ int createSymbolicLinksForDevices(int adcDeviceIndex, int dacDeviceIndex,
// delete andcreate iio device links folder (deleting because cannot
// overwrite symbolic links with -sf)
if (deleteAbsoluteDirectory(mess, IIO_DEVICE_FOLDER,
"create sym links for device trees") ==
FAIL) {
"create sym links for device trees") == FAIL) {
return FAIL;
}
if (createAbsoluteDirectory(mess, IIO_DEVICE_FOLDER,
"create sym links for device trees") ==
FAIL) {
"create sym links for device trees") == FAIL) {
return FAIL;
}
@ -243,8 +241,7 @@ int createSymbolicLinksForDevices(int adcDeviceIndex, int dacDeviceIndex,
memset(retvals, 0, MAX_STR_LENGTH);
if (executeCommand(cmd, retvals, logDEBUG1) == FAIL) {
snprintf(mess, MAX_STR_LENGTH,
"Could not create sym link [dac%d] (%s)\n", idac,
retvals);
"Could not create sym link [dac%d] (%s)\n", idac, retvals);
LOG(logERROR, (mess));
return FAIL;
}

View File

@ -8470,7 +8470,8 @@ int start_readout(int file_des) {
#else
if (Server_VerifyLock() == OK) {
enum runStatus s = getRunStatus();
if ((s == RUNNING || s == WAITING) && (myDetectorType != XILINX_CHIPTESTBOARD)) {
if ((s == RUNNING || s == WAITING) &&
(myDetectorType != XILINX_CHIPTESTBOARD)) {
ret = FAIL;
strcpy(mess, "Could not start readout because the detector is "
"already running!\n");