projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-tools: Add ao-dumpflash program
[fw/altos]
/
ao-tools
/
lib
/
cc-usb.c
diff --git
a/ao-tools/lib/cc-usb.c
b/ao-tools/lib/cc-usb.c
index 1580c6d9ffee488f84e1910e3e1cc9ecec943938..9f07e6624d2c849f7469c07cbc80dc018648f383 100644
(file)
--- 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
}
void
-cc_usb_open_remote(struct cc_usb *cc, int
channe
l)
+cc_usb_open_remote(struct cc_usb *cc, int
freq, char *cal
l)
{
if (!cc->remote) {
{
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);
do {
cc->in_count = cc->in_pos = 0;
_cc_usb_sync(cc, 100);