From 4dea6262b57f614cabd5cf4fa96c1e3d83c45fb4 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 24 Feb 2021 19:54:18 +0100 Subject: upgraded to esp-idf 4.2 --- fw/esp32/components/eos/cell_voice.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'fw/esp32/components/eos/cell_voice.c') diff --git a/fw/esp32/components/eos/cell_voice.c b/fw/esp32/components/eos/cell_voice.c index d28c38c..f820b63 100644 --- a/fw/esp32/components/eos/cell_voice.c +++ b/fw/esp32/components/eos/cell_voice.c @@ -106,13 +106,11 @@ static void call_end_handler(char *urc, regmatch_t m[]) { static void call_missed_handler(char *urc, regmatch_t m[]) { unsigned char *buf; uint16_t len; - int duration = 0; eos_cell_pcm_stop(); - sscanf(urc + m[1].rm_so, "%6d", &duration); buf = eos_net_alloc(); - buf[0] = EOS_CELL_MTYPE_VOICE | EOS_CELL_MTYPE_VOICE_MISSED; + buf[0] = EOS_CELL_MTYPE_VOICE | EOS_CELL_MTYPE_VOICE_MISS; urc[m[1].rm_eo] = '\0'; strcpy((char *)buf + 1, urc + m[1].rm_so); len = 2 + m[1].rm_eo - m[1].rm_so; -- cgit v1.2.3