diff --git a/rpi/main.py b/rpi/main.py index e17bd4d..b5e373e 100644 --- a/rpi/main.py +++ b/rpi/main.py @@ -327,11 +327,11 @@ def handle_program1(): bottom_text_iteration_count += 1 scroll_node_active = False force = s.get('force_vehicles', False) - if force: - with server._lock: - server.state['force_vehicles'] = False if s['program_vehicles_enabled'] and (force or bottom_text_iteration_count >= config.PROGRAM2_TEXT_ITERATIONS): if force or random.randint(0, 99) < config.PROGRAM2_TRIGGER_CHANCE: + if force: + with server._lock: + server.state['force_vehicles'] = False bottom_text_iteration_count = 0 program2_active = True reset_program2()