diff options
| author | Keith Packard <keithp@keithp.com> | 2009-04-17 10:11:11 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-04-17 10:11:11 -0700 | 
| commit | fafe55c3405964e0defdf25b6c00236f9aaefbc5 (patch) | |
| tree | 8db9280830b3db427b9cc3723a861f0bebe31516 /ccdump/ccdump.c | |
| parent | 26095fc0511ee0d5213f038986032f7c59964cf0 (diff) | |
Get env var for debug method selection
Diffstat (limited to 'ccdump/ccdump.c')
| -rw-r--r-- | ccdump/ccdump.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/ccdump/ccdump.c b/ccdump/ccdump.c index 5a5ce11c..399732d9 100644 --- a/ccdump/ccdump.c +++ b/ccdump/ccdump.c @@ -31,8 +31,10 @@ main (int argc, char **argv)  	uint8_t		*b;  	int		i, j;  	uint32_t	addr; +	char		*tty; -	cc = cc_usb_open(); +	tty = getenv("CCDBG_TTY"); +	cc = cc_usb_open(tty);  	for (block = 0; block < NUM_BLOCK; block++) {  		cc_queue_read(cc, bytes, sizeof (bytes));  		cc_usb_printf(cc, "e %x\n", block); | 
