summaryrefslogtreecommitdiff
path: root/fw/esp32/components/eos/cell_sms.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-08-12 01:49:15 +0200
committerUros Majstorovic <majstor@majstor.org>2020-08-12 01:49:15 +0200
commit57c1824affca858023c65c84e188ea7dc6c0a5f2 (patch)
treea3d701c98b76de279324a0d2318bbcb1259045d4 /fw/esp32/components/eos/cell_sms.c
parent0ca91a2b6a1b112a6e67306e7dbedaeec0225c5b (diff)
ussd service implemented urc
Diffstat (limited to 'fw/esp32/components/eos/cell_sms.c')
-rw-r--r--fw/esp32/components/eos/cell_sms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/esp32/components/eos/cell_sms.c b/fw/esp32/components/eos/cell_sms.c
index f9e7285..92c016e 100644
--- a/fw/esp32/components/eos/cell_sms.c
+++ b/fw/esp32/components/eos/cell_sms.c
@@ -243,7 +243,7 @@ void eos_cell_sms_handler(unsigned char mtype, unsigned char *buffer, uint16_t s
static void sms_received_handler(char *urc, regmatch_t m[]) {
int ref, rv;
- sscanf(urc + m[1].rm_so, "%6d", &ref);
+ sscanf(urc + m[1].rm_so, "%d", &ref);
snprintf(cmd, sizeof(cmd), "AT+CMGR=%d\r", ref);
at_cmd(cmd);