diff options
author | Sam Guyer <sam.guyer@gmail.com> | 2020-02-11 02:53:04 +0300 |
---|---|---|
committer | Sam Guyer <sam.guyer@gmail.com> | 2020-02-11 02:53:04 +0300 |
commit | c12ba9e2c7c2aa073ed86e8dc2ed2795ced21fcb (patch) | |
tree | 2612571ee427c8bc9b2231853d464185a86ec5dc | |
parent | 264b444fc065ea4bd9f28abe3e1868df403c31d8 (diff) |
Changes the #define to have a value (mek suggestion)
-rw-r--r-- | platforms/esp/32/clockless_rmt_esp32.h | 6 |
1 files 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 <fozztexx@fozztexx.com> * 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 |