This commit is contained in:
awe
2026-04-10 14:52:10 +03:00
parent 120ffaa6f1
commit a2848212d2
2 changed files with 16 additions and 37 deletions

View File

@ -8,12 +8,17 @@ BIN="${BIN:-./main.exe}"
TTY_PATH="${TTY_PATH:-/tmp/ttyADC_data}"
CSV_PATH="${CSV_PATH:-capture.csv}"
SVG_PATH="${SVG_PATH:-capture.svg}"
LIB_DIR="${LIB_DIR:-$HOME/.local/lib}"
if [[ ! -x "$BIN" ]]; then
echo "Binary '$BIN' not found or not executable. Run ./build_main.sh first." >&2
exit 1
fi
if [[ -d "$LIB_DIR" ]]; then
export LD_LIBRARY_PATH="${LIB_DIR}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
fi
exec "$BIN" \
clock:internal \
internal_ref_hz:2000000 \