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) { 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;

View File

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