mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
fixes 200% in acquire, instead of currentframeindex in listener (+1 to what it expects) to lastframeindex
This commit is contained in:
parent
a1b2bed3aa
commit
df6b9e192b
@ -55,9 +55,11 @@ int64_t Listener::GetNumMissingPacket(bool stoppedFlag,
|
||||
|
||||
bool Listener::GetStartedFlag() { return startedFlag; }
|
||||
|
||||
uint64_t Listener::GetCurrentFrameIndex() { return currentFrameIndex; }
|
||||
uint64_t Listener::GetCurrentFrameIndex() { return lastCaughtFrameIndex; }
|
||||
|
||||
uint64_t Listener::GetListenedIndex() { return currentFrameIndex - firstIndex; }
|
||||
uint64_t Listener::GetListenedIndex() {
|
||||
return lastCaughtFrameIndex - firstIndex;
|
||||
}
|
||||
|
||||
void Listener::SetFifo(Fifo *f) { fifo = f; }
|
||||
|
||||
@ -88,6 +90,7 @@ void Listener::ResetParametersforNewAcquisition() {
|
||||
void Listener::RecordFirstIndex(uint64_t fnum) {
|
||||
// listen to this fnum, later +1
|
||||
currentFrameIndex = fnum;
|
||||
lastCaughtFrameIndex = fnum;
|
||||
|
||||
startedFlag = true;
|
||||
firstIndex = fnum;
|
||||
|
Loading…
x
Reference in New Issue
Block a user