Commit 98390bfa authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

sw: Small bug fix in getsr.py

parent 5cde488a
...@@ -89,7 +89,7 @@ if __name__ == "__main__": ...@@ -89,7 +89,7 @@ if __name__ == "__main__":
# Gateware versions below these two had the switches active-low. # Gateware versions below these two had the switches active-low.
# This negation is done to allow correct printing of ON or OFF states. # This negation is done to allow correct printing of ON or OFF states.
if ((bid == "TBLO") and 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 switches ^= 0xff
if (switches & 0x80): if (switches & 0x80):
print(" TTL repetition : on") print(" TTL repetition : on")
...@@ -105,7 +105,7 @@ if __name__ == "__main__": ...@@ -105,7 +105,7 @@ if __name__ == "__main__":
rtmm = rtm & 0x7 rtmm = rtm & 0x7
rtmp = (rtm & 0x3f) >> 3 rtmp = (rtm & 0x3f) >> 3
if ((bid == "TBLO") and 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("-------------------------------")
print("Note: negated w.r.t. latest user guide version") print("Note: negated w.r.t. latest user guide version")
print("RTM detection : 0x%02x" % rtm) print("RTM detection : 0x%02x" % rtm)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment