From c12ba9e2c7c2aa073ed86e8dc2ed2795ced21fcb Mon Sep 17 00:00:00 2001 From: Sam Guyer Date: Mon, 10 Feb 2020 18:53:04 -0500 Subject: Changes the #define to have a value (mek suggestion) --- platforms/esp/32/clockless_rmt_esp32.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platforms/esp/32/clockless_rmt_esp32.h b/platforms/esp/32/clockless_rmt_esp32.h index bc18589e..b8cd1f42 100644 --- a/platforms/esp/32/clockless_rmt_esp32.h +++ b/platforms/esp/32/clockless_rmt_esp32.h @@ -64,7 +64,7 @@ * this from happening, define this flag. It will force flash * operations to wait until the show() is done. * - * #define FASTLED_ESP32_FLASH_LOCK + * #define FASTLED_ESP32_FLASH_LOCK 1 * * Based on public domain code created 19 Nov 2016 by Chris Osborn * http://insentricity.com * @@ -308,7 +308,7 @@ protected: } xSemaphoreTake(gTX_sem, portMAX_DELAY); -#ifdef FASTLED_ESP32_FLASH_LOCK +#if FASTLED_ESP32_FLASH_LOCK == 1 // -- Make sure no flash operations happen right now spi_flash_op_lock(); #endif @@ -361,7 +361,7 @@ protected: gNumDone = 0; gNext = 0; -#ifdef FASTLED_ESP32_FLASH_LOCK +#if FASTLED_ESP32_FLASH_LOCK == 1 // -- Release the lock on flash operations spi_flash_op_unlock(); #endif -- cgit v1.2.3