esp_ringbuf: don't test xRingbufferCreate with cache disabled

Creating a ringbuffer is not an operation that needs to be done when
the cache is disabled.
This commit is contained in:
Ivan Grokhotkov 2021-06-30 12:01:19 +02:00 committed by Angus Gratton
parent 8de50b5655
commit 68d417c4dc

View File

@ -673,8 +673,8 @@ static IRAM_ATTR __attribute__((noinline)) bool iram_ringbuf_test()
{
bool result = true;
spi_flash_guard_get()->start(); // Disables flash cache
RingbufHandle_t handle = xRingbufferCreate(CONT_DATA_TEST_BUFF_LEN, RINGBUF_TYPE_NOSPLIT);
spi_flash_guard_get()->start(); // Disables flash cache
result = result && (handle != NULL);
xRingbufferGetMaxItemSize(handle);
vRingbufferDelete(handle);