summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-10 13:08:24 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-14 15:45:04 -0500
commit38a23eb1083b8f464af5d0b8d3fe2b78fa341b9e (patch)
tree258dbc65d38fe8e01c5d457257e598ba4177d990
parent04f69240994b601adf07d83deaff25d1406a8327 (diff)
downloadofono-38a23eb1083b8f464af5d0b8d3fe2b78fa341b9e.tar.bz2
Make oFono use proper record ids, don't use tricks
-rw-r--r--drivers/atmodem/sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c
index ab05a5be..294762ac 100644
--- a/drivers/atmodem/sim.c
+++ b/drivers/atmodem/sim.c
@@ -202,7 +202,7 @@ static void at_sim_read_record(struct ofono_modem *modem, int fileid,
goto error;
snprintf(buf, sizeof(buf), "AT+CRSM=178,%i,%i,4,%i", fileid,
- record + 1, length);
+ record, length);
if (g_at_chat_send(at->parser, buf, crsm_prefix,
at_crsm_read_cb, cbd, g_free) > 0)
return;