mirror of
https://github.com/smittix/intercept.git
synced 2026-05-02 18:49:57 -07:00
Fix acarsdec JSON output flag for newer forks
Use -j instead of -o 4 for JSON output, which is the correct flag for acarsdec v4.3.1+ (Thibaut Varene fork). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -176,11 +176,12 @@ def start_acars() -> Response:
|
||||
acars_last_message_time = None
|
||||
|
||||
# Build acarsdec command
|
||||
# acarsdec -o 4 -g <gain> -p <ppm> -r <device> <freq1> <freq2> ...
|
||||
# Note: -o 4 is JSON stdout, gain/ppm must come BEFORE -r
|
||||
# acarsdec -j -g <gain> -p <ppm> -r <device> <freq1> <freq2> ...
|
||||
# Note: -j is JSON stdout (newer forks), -o 4 was the old syntax
|
||||
# gain/ppm must come BEFORE -r
|
||||
cmd = [
|
||||
acarsdec_path,
|
||||
'-o', '4', # JSON output to stdout
|
||||
'-j', # JSON output to stdout
|
||||
]
|
||||
|
||||
# Add gain if not auto (must be before -r)
|
||||
|
||||
Reference in New Issue
Block a user