Skip to content

Commit 6d24bf0

Browse files
committed
Fix Jamming at boot, via config or button 'B'
1 parent e538f36 commit 6d24bf0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,11 @@ def OLED_display_thread(mode = 0):
376376

377377
# Allocate appropriate StateMachines, and their pins
378378
pt.eng.sm = []
379-
pt.eng.sm.append(rp2.StateMachine(0, pt.auto_start, freq=int(pt.eng.tc.fps * 80 * 32)))
379+
if pt.eng.mode > 1:
380+
pt.eng.sm.append(rp2.StateMachine(0, pt.start_from_pin, freq=int(pt.eng.tc.fps * 80 * 32),
381+
jmp_pin=machine.Pin(21))) # Sync from RX LTC
382+
else:
383+
pt.eng.sm.append(rp2.StateMachine(0, pt.auto_start, freq=int(pt.eng.tc.fps * 80 * 32)))
380384
add_more_state_machines()
381385

382386
# Start up threads

0 commit comments

Comments
 (0)