mirror of git://git.sysmocom.de/ofono
atmodem: Fix CGDCONT result parsing.
CGDCONT result parsing fails if first list contains several ranges. For example with modem Cinterion PHS8: AT+CGDCONT=? +CGDCONT: (1-17,101-116),"IP",,,(0),(0-4) Solution: read first range and jump to second list instead of trying to close the brackets.
This commit is contained in:
parent
b4cbe8d41a
commit
4edc9fd57f
|
@ -522,7 +522,7 @@ static void at_cgdcont_test_cb(gboolean ok, GAtResult *result,
|
|||
if (g_at_result_iter_next_range(&iter, &min, &max) == FALSE)
|
||||
continue;
|
||||
|
||||
if (!g_at_result_iter_close_list(&iter))
|
||||
if (!g_at_result_iter_skip_next(&iter))
|
||||
continue;
|
||||
|
||||
if (g_at_result_iter_open_list(&iter))
|
||||
|
|
Loading…
Reference in New Issue