Skip to content

Commit 5c4c1b4

Browse files
committed
fix: ensure we can read ROM even when some on the ui_in DIP switches are on
1 parent 6372807 commit 5c4c1b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ttboard/demoboard.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,15 @@ def __init__(self,
138138
ports = ['uo_out', 'ui_in', 'uio_in', 'uio_out', 'uio_oe_pico']
139139
for p in ports:
140140
setattr(self, p, getattr(self.pins, p))
141-
141+
142+
# Make sure we can read the ROM even if the user has set some of the ui_in DIP switches
143+
self.pins.dieOnInputControlSwitchHigh = False
142144
self.shuttle = Globals.project_mux(self.user_config.force_shuttle)
143145
if self.shuttle.run == 'tt07':
144146
pins_mode = self.pins.mode
145147
GPIOMapTT06.tt07_cb_fix = True
146148
self.pins.mode = pins_mode # force re-init of pins to apply new pin map
149+
self.pins.dieOnInputControlSwitchHigh = True
147150

148151
# config
149152
self.apply_configs = apply_user_config

0 commit comments

Comments
 (0)