Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Guyer <sam.guyer@gmail.com>2022-01-01 20:56:24 +0300
committerGitHub <noreply@github.com>2022-01-01 20:56:24 +0300
commite47bbab67358d6d1dab8e25331206ef881646f7e (patch)
tree7aa3d51ced517366f0eaf995f1f3823fbaa119aa
parent8d49dd7f49a011a3b2b771522d055e90f1e3fcde (diff)
parent0f3ed0b04e77b6fb38aec8d69b1ad8ea6d6cfc7b (diff)
Merge pull request #1336 from Jueff/200msFlicker
avoid 200ms flicker every ~17.9 seconds with RMT driver
-rw-r--r--src/platforms/esp/32/clockless_rmt_esp32.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platforms/esp/32/clockless_rmt_esp32.cpp b/src/platforms/esp/32/clockless_rmt_esp32.cpp
index 9c89fcb4..0f8ad9b3 100644
--- a/src/platforms/esp/32/clockless_rmt_esp32.cpp
+++ b/src/platforms/esp/32/clockless_rmt_esp32.cpp
@@ -463,9 +463,9 @@ void IRAM_ATTR ESP32RMTController::fillNext(bool check_time)
{
uint32_t now = __clock_cycles();
if (check_time) {
- if (mLastFill != 0 and now > mLastFill) {
- uint32_t delta = (now - mLastFill);
- if (delta > mMaxCyclesPerFill) {
+ if (mLastFill != 0) {
+ int32_t delta = (now - mLastFill);
+ if (delta > (int32_t)mMaxCyclesPerFill) {
// Serial.print(delta);
// Serial.print(" BAIL ");
// Serial.println(mCur);