modem-helpers: update the regex for the AT+CIND=? response

Cinterion modems seem to include
   "signal",(0-7,99)

We just get rid of the ',99' part.
This commit is contained in:
Aleksander Morgado
2012-02-01 19:03:57 +01:00
parent 664f407b99
commit 18ca53b667

View File

@@ -1475,7 +1475,7 @@ mm_parse_cind_test_response (const char *reply, GError **error)
while (isspace (*reply)) while (isspace (*reply))
reply++; reply++;
r = g_regex_new ("\\(([^,]*),\\((\\d+)[-,](\\d+)\\)", G_REGEX_UNGREEDY, 0, NULL); r = g_regex_new ("\\(([^,]*),\\((\\d+)[-,](\\d+).*\\)", G_REGEX_UNGREEDY, 0, NULL);
if (!r) { if (!r) {
g_set_error_literal (error, g_set_error_literal (error,
MM_CORE_ERROR, MM_CORE_ERROR_FAILED, MM_CORE_ERROR, MM_CORE_ERROR_FAILED,