This commit is contained in:
maliakal_d 2021-06-04 10:15:37 +02:00
parent cf5d2cd97e
commit 81aa8c9ac5

View File

@ -1061,6 +1061,13 @@ int Feb_Control_SoftwareTrigger() {
("Software trigger failed. No exposure detected in 20ms.\n"));
return 0;
}
// wait for toggle for exposure to be done
while (toggle == prev_toggle) {
usleep(5000);
toggle = ((value & FEB_REG_STATUS_EXP_TGL_MSK) >>
FEB_REG_STATUS_EXP_TGL_OFST);
}
}
return 1;
}