[PATCH] Fix change state immediately when meet the slash
Denis Kenzior
denkenz at gmail.com
Tue Feb 2 09:47:22 PST 2010
Hi Zhenhua,
> According to V.250 spec section 5.2.4 Repeating a command line, if
> the prefix "A/" or "a/" is received, we should execute the last
> command immediately. No need to meet \r.
Yes you're right.
> @@ -214,22 +213,14 @@ static enum ParserResult server_feed(GAtServer
> *server, i += 1;
> res = PARSER_RESULT_GARBAGE;
> goto out;
> - } else if (byte == '/')
> - server->parser_state = PARSER_STATE_SLASH;
> - else if (byte == 'T' || byte == 't')
> + } else if (byte == '/') {
> server->parser_state = PARSER_STATE_COMMAND;
I changed this to PARSER_STATE_IDLE and applied the patch.
Regards,
-Denis
More information about the ofono
mailing list