From 6d24bf009d591c7d6e0eb1fccc152a1f63fdee81 Mon Sep 17 00:00:00 2001 From: Simon Wood Date: Thu, 29 Feb 2024 19:20:07 -0700 Subject: [PATCH] Fix Jamming at boot, via config or button 'B' --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 77a73ae..7c110f9 100755 --- a/main.py +++ b/main.py @@ -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