diff options
author | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2006-10-22 23:17:15 +0000 |
---|---|---|
committer | laforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2006-10-22 23:17:15 +0000 |
commit | 7fe163099476937a14dd7a0714de542f7f94f665 (patch) | |
tree | 7e1c703f7f30efd941591d35e51cc57616f60cec /src/util | |
parent | 1cfa84da8e1defe1a9d138c82afa80374eace8ab (diff) |
gsmd passthrough mode now working
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@109 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/shell.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/shell.c b/src/util/shell.c index eb1991d..3b13bc9 100644 --- a/src/util/shell.c +++ b/src/util/shell.c @@ -9,6 +9,8 @@ int shell_main(struct lgsmd_handle *lgsmh) { int rc; char buf[STDIN_BUF_SIZE+1]; + char rbuf[STDIN_BUF_SIZE+1]; + int rlen = sizeof(rbuf); while (1) { rc = fscanf(stdin, "%s", buf); @@ -21,5 +23,8 @@ int shell_main(struct lgsmd_handle *lgsmh) continue; } printf("STR=`%s'\n", buf); + lgsm_passthrough(lgsmh, buf, rbuf, &rlen); + + printf("RSTR=`%s'\n", rbuf); } } |