We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d49dd7 + 0f3ed0b commit e47bbabCopy full SHA for e47bbab
src/platforms/esp/32/clockless_rmt_esp32.cpp
@@ -463,9 +463,9 @@ void IRAM_ATTR ESP32RMTController::fillNext(bool check_time)
463
{
464
uint32_t now = __clock_cycles();
465
if (check_time) {
466
- if (mLastFill != 0 and now > mLastFill) {
467
- uint32_t delta = (now - mLastFill);
468
- if (delta > mMaxCyclesPerFill) {
+ if (mLastFill != 0) {
+ int32_t delta = (now - mLastFill);
+ if (delta > (int32_t)mMaxCyclesPerFill) {
469
// Serial.print(delta);
470
// Serial.print(" BAIL ");
471
// Serial.println(mCur);
0 commit comments