Skip to content

Commit 9125e4c

Browse files
committed
Fix keyboard not handling reads half the time
This is due to two DTECs being deleted and respawned in the wrong order, swapping IDs every frame. This is not actually a problem for the R3 because the circuitry that checks the outputs of those DTECs has higher IDs than both of those DTECs, but it does not conform to the R3 bus specification, which manifests a problem with the bus adapter I'm building for the R4.
1 parent 53fab00 commit 9125e4c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

r3/comp/terminal/init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,6 +1727,8 @@ local function build_internal(params, derived_params)
17271727
lsns_spark({ type = pt.PSCN, x = x_left + 15, y = y_bi - 1, life = 3 }, -1, 1, -2, 1)
17281728
cray(x_left + 14, y_bi, x_left + 14, y_bi + 2, pt.DTEC, 2, false)
17291729
cray(x_left + 14, y_bi, x_left + 14, y_bi + 2, pt.DTEC, 2, false)
1730+
cray(x_left + 14, y_bi, x_left + 14, y_bi + 2, pt.DTEC, 2, false)
1731+
cray(x_left + 14, y_bi, x_left + 14, y_bi + 2, pt.DTEC, 2, false)
17301732
part({ type = pt.CONV, x = x_left + 12, y = y_bi + 2, tmp = pt.INSL, ctype = pt.FILT })
17311733
local tap_target_1 = part({ type = pt.INSL, x = x_left + 12, y = y_bi + 2 })
17321734
local tap_target_2 = part({ type = pt.INSL, x = x_left + 11, y = y_bi + 3 })

0 commit comments

Comments
 (0)