This commit is contained in:
maliakal_d 2020-09-07 16:44:26 +02:00
parent 5540f16116
commit c9cf845c9a
2 changed files with 9 additions and 7 deletions

View File

@ -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;

View File

@ -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,