This commit is contained in:
Dhanya Maliakal 2016-10-31 17:04:49 +01:00
parent 58228ed00f
commit 1c073b70bd
2 changed files with 2 additions and 2 deletions

View File

@ -1876,9 +1876,9 @@ int read_frame(int file_des) {
#ifdef MCB_FUNCS #ifdef MCB_FUNCS
waitForAcquisitionEnd(); waitForAcquisitionEnd();
if (getFrames()>-2) { if (getFrames()+1>0) {
dataret=FAIL; dataret=FAIL;
sprintf(mess,"no data and run stopped: %d frames left\n",(int)(getFrames()+2)); sprintf(mess,"no data and run stopped: %d frames left\n",(int)(getFrames()+1));
} else { } else {
dataret=FINISHED; dataret=FINISHED;
sprintf(mess,"acquisition successfully finished\n"); sprintf(mess,"acquisition successfully finished\n");