mirror of git://git.sysmocom.de/ofono
Fix record number in at_sim_update_record.
This commit is contained in:
parent
2d12b296e0
commit
ed56d7c585
|
@ -321,7 +321,7 @@ static void at_sim_update_record(struct ofono_modem *modem, int fileid,
|
|||
goto error;
|
||||
|
||||
len = sprintf(buf, "AT+CRSM=220,%i,%i,4,%i,", fileid,
|
||||
record + 1, length);
|
||||
record, length);
|
||||
|
||||
for (; length; length--)
|
||||
len += sprintf(buf + len, "%02hhx", *value++);
|
||||
|
|
Loading…
Reference in New Issue