diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-05-11 16:14:14 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-05-11 16:14:14 +0200 |
commit | 1cafcbd398fa0e5a4afb1ade33ecf21694cde235 (patch) | |
tree | e49c32842e1e44efdc4198fbd787b275f1d65630 /code/esp32/components/eos/cell_pcm.c | |
parent | c827937e4599c4144f5d22af2de8e7a802b88be5 (diff) |
msgq functions rename; wifi constant rename
Diffstat (limited to 'code/esp32/components/eos/cell_pcm.c')
-rw-r--r-- | code/esp32/components/eos/cell_pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/esp32/components/eos/cell_pcm.c b/code/esp32/components/eos/cell_pcm.c index 46c64d9..9ee6b63 100644 --- a/code/esp32/components/eos/cell_pcm.c +++ b/code/esp32/components/eos/cell_pcm.c @@ -79,7 +79,7 @@ static void i2s_event_task(void *pvParameters) { buf = NULL; xSemaphoreTake(mutex, portMAX_DELAY); - if (pcm_hold_tx && (eos_msgq_size(&pcm_evt_q) == PCM_HOLD_CNT_TX)) pcm_hold_tx = 0; + if (pcm_hold_tx && (eos_msgq_len(&pcm_evt_q) == PCM_HOLD_CNT_TX)) pcm_hold_tx = 0; if (!pcm_hold_tx) eos_msgq_pop(&pcm_evt_q, &_type, &buf, &bytes_e, NULL); xSemaphoreGive(mutex); @@ -200,7 +200,7 @@ int eos_pcm_push(unsigned char *data, size_t size) { if (size > PCM_MIC_WM) return EOS_ERR; xSemaphoreTake(mutex, portMAX_DELAY); - if (pcm_hold_tx && (eos_msgq_size(&pcm_evt_q) == PCM_HOLD_CNT_TX)) { + if (pcm_hold_tx && (eos_msgq_len(&pcm_evt_q) == PCM_HOLD_CNT_TX)) { unsigned char _type; uint16_t _len; |