This is an example of a valid report, the pattern should allow it: SRC: "%EM=2,1" -> [ "%EM: 518,-1,29,7,14,37151,23,1,1,0,0,0,0,0,0,26895,0,0,2,255", "OK" ]
Signed-off-by: Paul Fertser <fercer...@gmail.com> --- fsogsmd/src/plugins/modem_ti_calypso/commands.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsogsmd/src/plugins/modem_ti_calypso/commands.vala b/fsogsmd/src/plugins/modem_ti_calypso/commands.vala index 5728b82..2b72f4c 100644 --- a/fsogsmd/src/plugins/modem_ti_calypso/commands.vala +++ b/fsogsmd/src/plugins/modem_ti_calypso/commands.vala @@ -174,7 +174,7 @@ public class PercentEM21 : AbstractAtCommand { try { - re = new Regex( """%EM: (?P<arfcn>\d+),(?P<c1>\d+),(?P<c2>\d+),(?P<rxlev>\d+),(?P<bsic>\d+),(?P<cid>\d+),(?P<dsc>\d+),(?P<txlev>\d+),(?P<tn>\d+),(?P<rlt>\d+),(?P<tav>\d+),(?P<rxlev_f>\d+),(?P<rxlev_s>\d+),(?P<rxqual_f>\d+),(?P<rxqual_s>\d+),(?P<lac>\d+),(?P<cba>\d+),(?P<cbq>\d+),(?P<ctype>\d+),(?P<vocoder>\d+)""" ); + re = new Regex( """%EM: (?P<arfcn>\d+),(?P<c1>-?\d+),(?P<c2>\d+),(?P<rxlev>\d+),(?P<bsic>\d+),(?P<cid>\d+),(?P<dsc>\d+),(?P<txlev>\d+),(?P<tn>\d+),(?P<rlt>\d+),(?P<tav>\d+),(?P<rxlev_f>\d+),(?P<rxlev_s>\d+),(?P<rxqual_f>\d+),(?P<rxqual_s>\d+),(?P<lac>\d+),(?P<cba>\d+),(?P<cbq>\d+),(?P<ctype>\d+),(?P<vocoder>\d+)""" ); } catch ( GLib.RegexError e ) { -- 1.7.10 _______________________________________________ Smartphones-userland mailing list Smartphones-userland@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland