gsm: Save time of received frame for later use in XCCHL1Decoder
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
908bc39f5f
commit
3c7ad29fa8
|
@ -568,6 +568,10 @@ bool XCCHL1Decoder::processBurst(const RxBurst& inBurst)
|
|||
inBurst.data1().copyToSegment(mI[B],0);
|
||||
inBurst.data2().copyToSegment(mI[B],57);
|
||||
|
||||
// If the burst index is 0, save the time
|
||||
if (B==0)
|
||||
mReadTime = inBurst.time();
|
||||
|
||||
// If the burst index is 3, then this is the last burst in the L2 frame.
|
||||
// Return true to indicate that we are ready to deinterleave.
|
||||
return B==3;
|
||||
|
|
|
@ -482,6 +482,7 @@ class XCCHL1Decoder : public L1Decoder {
|
|||
BitVector mD; ///< d[], as per GSM 05.03 2.2
|
||||
//@}
|
||||
|
||||
GSM::Time mReadTime; ///< timestamp of the first burst
|
||||
unsigned mRSSIHistory[4];
|
||||
|
||||
public:
|
||||
|
|
Reference in New Issue