wavecom: handle READY without OK in CPIN? reply

This commit is contained in:
Aleksander Morgado
2011-04-11 10:04:27 +02:00
parent f91ee7af7d
commit 262edb96d5
2 changed files with 48 additions and 6 deletions
+2 -1
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,