mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-25 15:50: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; }
|
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; }
|
void Listener::SetFifo(Fifo *f) { fifo = f; }
|
||||||
|
|
||||||
@ -88,6 +90,7 @@ void Listener::ResetParametersforNewAcquisition() {
|
|||||||
void Listener::RecordFirstIndex(uint64_t fnum) {
|
void Listener::RecordFirstIndex(uint64_t fnum) {
|
||||||
// listen to this fnum, later +1
|
// listen to this fnum, later +1
|
||||||
currentFrameIndex = fnum;
|
currentFrameIndex = fnum;
|
||||||
|
lastCaughtFrameIndex = fnum;
|
||||||
|
|
||||||
startedFlag = true;
|
startedFlag = true;
|
||||||
firstIndex = fnum;
|
firstIndex = fnum;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user