summaryrefslogtreecommitdiff
path: root/ao-tools/lib/cc-usb.c
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2013-03-10 19:07:01 +1300
committerMike Beattie <mike@ethernal.org>2013-03-10 19:07:01 +1300
commitd029acad6a992be9b7b4498e70605f8a1e1a4ef6 (patch)
tree851283be0bcb5915bd54e2c19073531336080bd5 /ao-tools/lib/cc-usb.c
parenteba7b2ef8ef23bdb61b0390e47be6f27ffde31dc (diff)
parent72c5b1429bdfd6e9d2185bad7d0adb281fdf659a (diff)
Merge branch 'master' into altosdroid
Diffstat (limited to 'ao-tools/lib/cc-usb.c')
-rw-r--r--ao-tools/lib/cc-usb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ao-tools/lib/cc-usb.c b/ao-tools/lib/cc-usb.c
index 1580c6d9..9f07e662 100644
--- a/ao-tools/lib/cc-usb.c
+++ b/ao-tools/lib/cc-usb.c
@@ -375,11 +375,12 @@ cc_usb_reset(struct cc_usb *cc)
}
void
-cc_usb_open_remote(struct cc_usb *cc, int channel)
+cc_usb_open_remote(struct cc_usb *cc, int freq, char *call)
{
if (!cc->remote) {
- printf ("channel %d\n", channel);
- cc_usb_printf(cc, "\nc r %d\np\nE 0\n", channel);
+ fprintf (stderr, "freq %dkHz\n", freq);
+ fprintf (stderr, "call %s\n", call);
+ cc_usb_printf(cc, "\nc F %d\nc c %s\np\nE 0\n", freq, call);
do {
cc->in_count = cc->in_pos = 0;
_cc_usb_sync(cc, 100);