mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
wip
This commit is contained in:
parent
9746875014
commit
3394d8659b
@ -1062,6 +1062,7 @@ int Feb_Control_SoftwareTrigger(int block) {
|
|||||||
|
|
||||||
// wait for next trigger ready
|
// wait for next trigger ready
|
||||||
if (block) {
|
if (block) {
|
||||||
|
LOG(logINFO, ("Blocking Software Trigger\n"));
|
||||||
int readyForTrigger = 0;
|
int readyForTrigger = 0;
|
||||||
if (!Feb_Control_IsReadyForTrigger(&readyForTrigger)) {
|
if (!Feb_Control_IsReadyForTrigger(&readyForTrigger)) {
|
||||||
LOG(logERROR, ("Could not read FEB_REG_STATUS reg after giving "
|
LOG(logERROR, ("Could not read FEB_REG_STATUS reg after giving "
|
||||||
@ -1070,7 +1071,7 @@ int Feb_Control_SoftwareTrigger(int block) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (!readyForTrigger) {
|
while (!readyForTrigger) {
|
||||||
usleep(100);
|
usleep(5000);
|
||||||
if (!Feb_Control_IsReadyForTrigger(&readyForTrigger)) {
|
if (!Feb_Control_IsReadyForTrigger(&readyForTrigger)) {
|
||||||
LOG(logERROR, ("Could not read FEB_REG_STATUS reg after "
|
LOG(logERROR, ("Could not read FEB_REG_STATUS reg after "
|
||||||
"giving trigger!\n"));
|
"giving trigger!\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user