Skip to content

Commit ae17f7d

Browse files
committed
Remove extraneous scaleb(-9) in set_ts_tod_ns in ptp_td so that the seconds field can be set correctly
Signed-off-by: Alex Forencich <[email protected]>
1 parent 22abe6c commit ae17f7d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tb/ptp_td.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def set_ts_tod_64(self, ts):
127127

128128
def set_ts_tod_ns(self, t):
129129
ts_s, ts_ns = self.ctx.divmod(Decimal(t), Decimal(1000000000))
130-
ts_s = ts_s.scaleb(-9).to_integral_value()
131130
ts_ns, ts_fns = self.ctx.divmod(ts_ns, Decimal(1))
132131
ts_ns = ts_ns.to_integral_value()
133132
ts_fns = (ts_fns * Decimal(2**32)).to_integral_value()

0 commit comments

Comments
 (0)