Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Trigger Distribution
Commits
2b5a8245
Commit
2b5a8245
authored
Jul 05, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sw] python: convert tstamp fields to int first to be sure
parent
0be3c8a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
PyWrtd.py
software/lib/python/PyWrtd.py
+3
-3
No files found.
software/lib/python/PyWrtd.py
View file @
2b5a8245
...
...
@@ -24,9 +24,9 @@ class wrtd_tstamp(Structure):
(
"frac"
,
c_uint32
)]
def
__init__
(
self
,
seconds
=
0
,
ns
=
0
,
frac
=
0
):
self
.
seconds
=
seconds
self
.
ns
=
ns
self
.
frac
=
frac
self
.
seconds
=
int
(
seconds
)
self
.
ns
=
int
(
ns
)
self
.
frac
=
int
(
frac
)
def
__iter__
(
self
):
yield
'seconds'
,
self
.
seconds
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment