mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
WIP
This commit is contained in:
parent
5540f16116
commit
c9cf845c9a
@ -2105,12 +2105,14 @@ int setBurstModeinFPGA(enum burstMode value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int setBurstMode(enum burstMode burst) {
|
int setBurstMode(enum burstMode burst) {
|
||||||
LOG(logINFO, ("Setting burst mode to %s\n",
|
LOG(logINFO,
|
||||||
burst == BURST_INTERNAL
|
("Setting burst mode to %s\n",
|
||||||
? "burst_internal"
|
(burst == BURST_INTERNAL
|
||||||
: (burst == BURST_EXTERNAL ? "burst external"
|
? "burst_internal"
|
||||||
: (burst == CONTINUOUS_INTERNAL ? "continuous internal"
|
: (burst == BURST_EXTERNAL ? "burst external"
|
||||||
: "continuous external")))));
|
: (burst == CONTINUOUS_INTERNAL
|
||||||
|
? "continuous internal"
|
||||||
|
: "continuous external")))));
|
||||||
|
|
||||||
// update
|
// update
|
||||||
int64_t framesReg = 0;
|
int64_t framesReg = 0;
|
||||||
|
@ -1941,7 +1941,7 @@ int set_num_frames(int file_des) {
|
|||||||
#ifdef GOTTHARD2D
|
#ifdef GOTTHARD2D
|
||||||
// validate #frames in burst mode
|
// validate #frames in burst mode
|
||||||
enum burstMode mode = getBurstMode();
|
enum burstMode mode = getBurstMode();
|
||||||
if ((mode == BURST_INTERNAL || mdoe == BURST_EXTERNAL) &&
|
if ((mode == BURST_INTERNAL || mode == BURST_EXTERNAL) &&
|
||||||
arg > MAX_FRAMES_IN_BURST_MODE) {
|
arg > MAX_FRAMES_IN_BURST_MODE) {
|
||||||
ret = FAIL;
|
ret = FAIL;
|
||||||
sprintf(mess,
|
sprintf(mess,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user