Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
Conv TTL Blocking
Commits
98390bfa
Commit
98390bfa
authored
Jan 26, 2015
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Small bug fix in getsr.py
parent
5cde488a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
getsr.py
software/diag/getsr.py
+2
-2
No files found.
software/diag/getsr.py
View file @
98390bfa
...
...
@@ -89,7 +89,7 @@ if __name__ == "__main__":
# Gateware versions below these two had the switches active-low.
# This negation is done to allow correct printing of ON or OFF states.
if
((
bid
==
"TBLO"
)
and
(((
maj
==
0
)
and
(
min
<
2
))
or
(
maj
<
3
))):
(((
maj
==
0
)
and
(
min
<
2
))
or
(
(
maj
!=
0
)
and
(
maj
<
3
)
))):
switches
^=
0xff
if
(
switches
&
0x80
):
print
(
" TTL repetition : on"
)
...
...
@@ -105,7 +105,7 @@ if __name__ == "__main__":
rtmm
=
rtm
&
0x7
rtmp
=
(
rtm
&
0x3f
)
>>
3
if
((
bid
==
"TBLO"
)
and
(((
maj
==
0
)
and
(
min
<
2
))
or
(
maj
<
3
))):
(((
maj
==
0
)
and
(
min
<
2
))
or
(
(
maj
!=
0
)
and
(
maj
<
3
)
))):
print
(
"-------------------------------"
)
print
(
"Note: negated w.r.t. latest user guide version"
)
print
(
"RTM detection : 0x
%02
x"
%
rtm
)
...
...
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