mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +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) {
|
||||
LOG(logINFO, ("Setting burst mode to %s\n",
|
||||
burst == BURST_INTERNAL
|
||||
? "burst_internal"
|
||||
: (burst == BURST_EXTERNAL ? "burst external"
|
||||
: (burst == CONTINUOUS_INTERNAL ? "continuous internal"
|
||||
: "continuous external")))));
|
||||
LOG(logINFO,
|
||||
("Setting burst mode to %s\n",
|
||||
(burst == BURST_INTERNAL
|
||||
? "burst_internal"
|
||||
: (burst == BURST_EXTERNAL ? "burst external"
|
||||
: (burst == CONTINUOUS_INTERNAL
|
||||
? "continuous internal"
|
||||
: "continuous external")))));
|
||||
|
||||
// update
|
||||
int64_t framesReg = 0;
|
||||
|
@ -1941,7 +1941,7 @@ int set_num_frames(int file_des) {
|
||||
#ifdef GOTTHARD2D
|
||||
// validate #frames in burst mode
|
||||
enum burstMode mode = getBurstMode();
|
||||
if ((mode == BURST_INTERNAL || mdoe == BURST_EXTERNAL) &&
|
||||
if ((mode == BURST_INTERNAL || mode == BURST_EXTERNAL) &&
|
||||
arg > MAX_FRAMES_IN_BURST_MODE) {
|
||||
ret = FAIL;
|
||||
sprintf(mess,
|
||||
|
Loading…
x
Reference in New Issue
Block a user