gotthard2: burst mode check

This commit is contained in:
maliakal_d 2020-02-04 15:28:24 +01:00
parent 0ac28c0208
commit 4d6996bd55
2 changed files with 1 additions and 1 deletions

View File

@ -1967,7 +1967,7 @@ int set_num_frames(int file_des) {
if (Server_VerifyLock() == OK) {
#ifdef GOTTHARD2D
// validate #frames in burst mode
if (getBurstMode() != BURST_OFF && arg > MAX_FRAMES_IN_BURST_MODE) {
if (getBurstMode() == BURST_OFF && arg > MAX_FRAMES_IN_BURST_MODE) {
ret = FAIL;
sprintf(mess, "Could not set number of frames %lld. Must be <= %d in burst mode.\n", (long long unsigned int)arg, MAX_FRAMES_IN_BURST_MODE);
FILE_LOG(logERROR,(mess));