diff --git a/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c index 850dcab10..e00ffd8cf 100644 --- a/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c @@ -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; diff --git a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c index 4e093a39f..0b3f5c8e7 100644 --- a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c +++ b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c @@ -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,