projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run-time selection between cp2103 and cc1111
[fw/altos]
/
lib
/
cc-usb.c
diff --git
a/lib/cc-usb.c
b/lib/cc-usb.c
index 09b06bb54054b2e71c2e5c8c7b4ea8b175fce2f0..9df2e31224554e944c47f33bbb1e82f7632b80af 100644
(file)
--- a/
lib/cc-usb.c
+++ b/
lib/cc-usb.c
@@
-317,13
+317,11
@@
cc_usb_reset(struct cc_usb *cc)
static struct termios save_termios;
struct cc_usb *
static struct termios save_termios;
struct cc_usb *
-cc_usb_open(
void
)
+cc_usb_open(
char *tty
)
{
struct cc_usb *cc;
{
struct cc_usb *cc;
- char *tty;
struct termios termios;
struct termios termios;
- tty = getenv("CCDBG_TTY");
if (!tty)
tty = DEFAULT_TTY;
cc = calloc (sizeof (struct cc_usb), 1);
if (!tty)
tty = DEFAULT_TTY;
cc = calloc (sizeof (struct cc_usb), 1);