mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
format
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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");
|
||||
|
@ -567,7 +567,8 @@ int powerChip(int on, char *mess) {
|
||||
LOG(logERROR, (mess));
|
||||
|
||||
// to be removed when fixed later
|
||||
LOG(logWARNING, ("Bypassing this error for now. To be fixed later...\n"));
|
||||
LOG(logWARNING,
|
||||
("Bypassing this error for now. To be fixed later...\n"));
|
||||
return OK;
|
||||
|
||||
return FAIL;
|
||||
@ -1334,7 +1335,7 @@ int startStateMachine() {
|
||||
#endif
|
||||
|
||||
LOG(logINFOBLUE, ("Starting State Machine\n"));
|
||||
//cleanFifos(); removing this for now as its done before readout pattern
|
||||
// cleanFifos(); removing this for now as its done before readout pattern
|
||||
|
||||
// start state machine
|
||||
bus_w(FLOW_CONTROL_REG, bus_r(FLOW_CONTROL_REG) | START_F_MSK);
|
||||
|
Reference in New Issue
Block a user