wavecom: handle READY without OK in CPIN? reply

This commit is contained in:
Aleksander Morgado
2011-03-30 18:52:23 +02:00
parent f91ee7af7d
commit 262edb96d5
2 changed files with 48 additions and 6 deletions

View File

@@ -270,10 +270,11 @@ mm_serial_parser_v1_parse (gpointer data,
/* First, check for successful responses */
/* Custom successful replies first, if any */
if (parser->regex_custom_successful)
if (parser->regex_custom_successful) {
found = g_regex_match_full (parser->regex_custom_successful,
response->str, response->len,
0, 0, NULL, NULL);
}
if (!found) {
found = g_regex_match_full (parser->regex_ok,