From 7fe163099476937a14dd7a0714de542f7f94f665 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 22 Oct 2006 23:17:15 +0000 Subject: gsmd passthrough mode now working git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@109 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/util/shell.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util') 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); } } -- cgit v1.2.3