Commit f67357cf authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

sw: Using new CSR.SWITCHES defintion in ttl_pulse_switch.py

parent 61819c37
......@@ -199,7 +199,7 @@ def main(bus, tname, inf, log):
pel.set(msg)
# Switches test
switches = (bus.vv_read(CSR) & 0xff0000) >> 16
switches = (bus.vv_read(CSR) >> CSR_SWITCHES_OFS) & 0xff
if (switches != 0x80):
msg = "ERROR: Switches readout (0x%x) incorrect - expected 0x80" % switches
pel.set(msg)
......
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