projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1390a63
)
Add Repeat last command support
author
Zhenhua Zhang
<zhenhua.zhang@intel.com>
Wed, 31 Mar 2010 09:50:37 +0000
(17:50 +0800)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 31 Mar 2010 13:10:33 +0000
(08:10 -0500)
gatchat/gatserver.c
patch
|
blob
|
history
diff --git
a/gatchat/gatserver.c
b/gatchat/gatserver.c
index
5206a12
..
4796b71
100644
(file)
--- a/
gatchat/gatserver.c
+++ b/
gatchat/gatserver.c
@@
-996,8
+996,13
@@
static void new_bytes(GAtServer *p)
}
case PARSER_RESULT_REPEAT_LAST:
- /* TODO */
- g_at_server_send_final(p, G_AT_SERVER_RESULT_ERROR);
+ p->cur_pos = 0;
+
+ if (p->last_line)
+ server_parse_line(p);
+ else
+ g_at_server_send_final(p,
+ G_AT_SERVER_RESULT_OK);
ring_buffer_drain(p->read_buf, p->read_so_far);
break;