summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2012-10-04 04:20:51 +0900
committerdaniel <danieruru@gmail.com>2012-10-04 04:20:51 +0900
commit69d7ac58e532e5e51cf65c7d127fafddb812167d (patch)
tree140dd90ec31bbb3667b685510dfab8fb881c3252 /parser.c
parent3f81a5c4e8bab38a904df55a5a363baa33c794fb (diff)
parent58b03f6b9bd96fb6de58e9a75b9af5fab7e3fab0 (diff)
Merge branch 'master' of grenfell.avtechpulse.com:Instrument
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 86285f4..b1fe924 100644
--- a/parser.c
+++ b/parser.c
@@ -1081,7 +1081,9 @@ void Parser_main (char *raw_in, int interactive_terminal, void(*cbfunc)(gpointer
(*cbfunc)(user_data, error_response);
}
} else {
- (*cbfunc)(user_data, response);
+ if (interactive_terminal) {
+ (*cbfunc)(user_data, response);
+ }
}
g_free (units);