]> git.gag.com Git - fw/altos/commitdiff
ao-bringup: Re-add cal-freq
authorKeith Packard <keithp@keithp.com>
Sat, 27 Jul 2024 21:59:39 +0000 (14:59 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 27 Jul 2024 23:15:19 +0000 (16:15 -0700)
This got deleted by mistake

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-bringup/cal-freq [new file with mode: 0755]
configure.ac

diff --git a/ao-bringup/cal-freq b/ao-bringup/cal-freq
new file mode 100755 (executable)
index 0000000..40c25ce
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+case $# in
+1)
+       dev="$1"
+       ;;
+*)
+       echo "Usage: $0 <device>"
+       exit 1;
+       ;;
+esac
+
+../ao-tools/ao-cal-freq/ao-cal-freq --tty=$dev
+case $? in
+    0)
+       calline=`./get-radio-cal $dev`
+       CAL_VALUE=`echo $calline | awk '{print $2}'`
+       CURRENT_FREQ=`echo $calline | awk '{print $4}'`
+       echo $SERIAL","$CAL_VALUE >> cal_values
+       exit 0
+       ;;
+    *)
+       exit 1
+       ;;
+esac
index 998cda30a02c8de3eaf11e09634b7dcbf421b118..e154507b43de757fc57911f7c1738701a7333ea5 100644 (file)
@@ -18,7 +18,7 @@ dnl
 dnl Process this file with autoconf to create configure.
 
 AC_PREREQ(2.57)
-AC_INIT([altos], 1.9.18)
+AC_INIT([altos], 1.9.18.1)
 ANDROID_VERSION=37
 AC_CONFIG_SRCDIR([src/kernel/ao.h])
 AM_INIT_AUTOMAKE([foreign dist-bzip2])