Skip to content

Commit

Permalink
Fix Jamming at boot, via config or button 'B'
Browse files Browse the repository at this point in the history
  • Loading branch information
mungewell committed Mar 1, 2024
1 parent e538f36 commit 6d24bf0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,11 @@ def OLED_display_thread(mode = 0):

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

# Start up threads
Expand Down

0 comments on commit 6d24bf0

Please sign in to comment.