fix GSM signal strength parsing (Closes: 291)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1520 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
parent
dc0249fe1a
commit
3e46025338
|
@ -81,7 +81,7 @@ static int csq_parse(char *buf, int len, const char *param,
|
|||
|
||||
|
||||
aux = (struct gsmd_evt_auxdata *) ucmd->buf;
|
||||
tok = strtok(buf, ",");
|
||||
tok = strtok(param, ",");
|
||||
if (!tok)
|
||||
goto out_free_io;
|
||||
|
||||
|
@ -93,7 +93,6 @@ static int csq_parse(char *buf, int len, const char *param,
|
|||
|
||||
aux->u.signal.sigq.ber = atoi(tok);
|
||||
|
||||
DEBUGP("sending EVT_SIGNAL\n");
|
||||
usock_evt_send(gsmd, ucmd, GSMD_EVT_SIGNAL);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue