diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-08-27 02:34:46 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-08-27 02:34:46 +0200 |
commit | 53b7904443109da0aa06e3225cddc0bcbdf85b93 (patch) | |
tree | 4dd1de9b8e365224344d4dc40a3ce91b69be44c2 /fw/esp32/components/eos/cell_pcm.c | |
parent | f78eeaa085e6da05f4a79ea8c4cb5bd8bc77bbab (diff) |
added spi driver for imx8; added lwip tun driver
Diffstat (limited to 'fw/esp32/components/eos/cell_pcm.c')
-rw-r--r-- | fw/esp32/components/eos/cell_pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/esp32/components/eos/cell_pcm.c b/fw/esp32/components/eos/cell_pcm.c index cf3eeb7..a022aab 100644 --- a/fw/esp32/components/eos/cell_pcm.c +++ b/fw/esp32/components/eos/cell_pcm.c @@ -70,7 +70,7 @@ static void i2s_event_task(void *pvParameters) { hold_buf = eos_net_alloc(); hold_buf[0] = EOS_CELL_MTYPE_VOICE | EOS_CELL_MTYPE_VOICE_PCM; } - if (1 + hold_bytes_r + PCM_MIC_WM <= EOS_NET_SIZE_BUF) hold_bytes_r += eos_cell_pcm_read(hold_buf + 1 + hold_bytes_r, PCM_MIC_WM); + if (1 + hold_bytes_r + PCM_MIC_WM <= EOS_NET_MTU) hold_bytes_r += eos_cell_pcm_read(hold_buf + 1 + hold_bytes_r, PCM_MIC_WM); if (hold_cnt == 0) { eos_net_send(EOS_NET_MTYPE_CELL, hold_buf, hold_bytes_r + 1); hold_bytes_r = 0; |