Skip to content
Snippets Groups Projects
Commit 87367bce authored by Marko Mecina's avatar Marko Mecina
Browse files

fix setting of sync byte in PUSpack

parent 3a3a22e0
Branches
No related tags found
No related merge requests found
...@@ -2466,6 +2466,7 @@ def PUSpack(version=0, typ=0, dhead=0, apid=0, gflags=0b11, sc=0, pktl=0, ...@@ -2466,6 +2466,7 @@ def PUSpack(version=0, typ=0, dhead=0, apid=0, gflags=0b11, sc=0, pktl=0,
header.bits.SERV_SUB_TYPE = sst header.bits.SERV_SUB_TYPE = sst
header.bits.DEST_ID = sdid header.bits.DEST_ID = sdid
ctime, ftime, sync = calc_timestamp(timestamp) ctime, ftime, sync = calc_timestamp(timestamp)
sync = 0 if sync is None else sync
header.bits.CTIME = ctime header.bits.CTIME = ctime
header.bits.FTIME = ftime header.bits.FTIME = ftime
header.bits.TIMESYNC = sync header.bits.TIMESYNC = sync
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment