diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-02-24 19:54:18 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-02-24 19:54:18 +0100 |
commit | 4dea6262b57f614cabd5cf4fa96c1e3d83c45fb4 (patch) | |
tree | 765eb9b4322c6158089232cccf6a30eb62ba90d9 /fw/esp32/components/eos/cell_voice.c | |
parent | 3050565531af2b3a09f2213893f10c64cf9fe43f (diff) |
upgraded to esp-idf 4.2
Diffstat (limited to 'fw/esp32/components/eos/cell_voice.c')
-rw-r--r-- | fw/esp32/components/eos/cell_voice.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |