mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 17:10:03 +02:00
ctb adc phase get fix
This commit is contained in:
parent
140996fae6
commit
166541bd15
@ -1910,7 +1910,7 @@ int set_speed(int file_des) {
|
|||||||
enum speedVariable ind = args[0];
|
enum speedVariable ind = args[0];
|
||||||
int val = args[1];
|
int val = args[1];
|
||||||
int GET_VAL = -1;
|
int GET_VAL = -1;
|
||||||
if ((ind == PHASE_SHIFT) || (val == ADC_PHASE) || (val == DBIT_PHASE))
|
if ((ind == PHASE_SHIFT) || (ind == ADC_PHASE) || (ind == DBIT_PHASE))
|
||||||
GET_VAL = 100000;
|
GET_VAL = 100000;
|
||||||
|
|
||||||
char speedName[20] = {0};
|
char speedName[20] = {0};
|
||||||
@ -1947,8 +1947,9 @@ int set_speed(int file_des) {
|
|||||||
|
|
||||||
if (ret == OK) {
|
if (ret == OK) {
|
||||||
// set
|
// set
|
||||||
if ((val != GET_VAL) && (Server_VerifyLock() == OK))
|
if ((val != GET_VAL) && (Server_VerifyLock() == OK)) {
|
||||||
setSpeed(ind, val);
|
setSpeed(ind, val);
|
||||||
|
}
|
||||||
// get
|
// get
|
||||||
retval = getSpeed(ind);
|
retval = getSpeed(ind);
|
||||||
FILE_LOG(logDEBUG1, ("%s: %d\n", speedName, retval));
|
FILE_LOG(logDEBUG1, ("%s: %d\n", speedName, retval));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user