Skip to content

Commit e47bbab

Browse files
authored
Merge pull request FastLED#1336 from Jueff/200msFlicker
avoid 200ms flicker every ~17.9 seconds with RMT driver
2 parents 8d49dd7 + 0f3ed0b commit e47bbab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/platforms/esp/32/clockless_rmt_esp32.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,9 @@ void IRAM_ATTR ESP32RMTController::fillNext(bool check_time)
463463
{
464464
uint32_t now = __clock_cycles();
465465
if (check_time) {
466-
if (mLastFill != 0 and now > mLastFill) {
467-
uint32_t delta = (now - mLastFill);
468-
if (delta > mMaxCyclesPerFill) {
466+
if (mLastFill != 0) {
467+
int32_t delta = (now - mLastFill);
468+
if (delta > (int32_t)mMaxCyclesPerFill) {
469469
// Serial.print(delta);
470470
// Serial.print(" BAIL ");
471471
// Serial.println(mCur);

0 commit comments

Comments
 (0)