From 66e45d143bc97e9ebdd7ad5726775793c08aa6c8 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Wed, 30 Jun 2021 12:01:19 +0200 Subject: [PATCH] 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. --- components/esp_ringbuf/test/test_ringbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_ringbuf/test/test_ringbuf.c b/components/esp_ringbuf/test/test_ringbuf.c index 7e6f441af4..e1b0a7d1cd 100644 --- a/components/esp_ringbuf/test/test_ringbuf.c +++ b/components/esp_ringbuf/test/test_ringbuf.c @@ -673,8 +673,8 @@ static IRAM_ATTR __attribute__((noinline)) bool iram_ringbuf_test(void) { 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);