Skip to content

Commit

Permalink
Merge pull request FastLED#1021 from MartyMacGyver/mff-fix-912-delay-…
Browse files Browse the repository at this point in the history
…not-working-on-teeensy4

Ensure getMaxRefreshRate() returns a non-zero default for Teensy 4.x
  • Loading branch information
kriegsman authored May 25, 2020
2 parents 872a2ff + 60c05c3 commit 898a1e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions platforms/arm/mxrt1062/block_clockless_arm_mxrt1062.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class FlexibleInlineBlockClocklessController : public CPixelLEDController<RGB_OR

}

virtual uint16_t getMaxRefreshRate() const { return 400; }

virtual void showPixels(PixelController<RGB_ORDER, LANES, __FL_T4_MASK> & pixels) {
mWait.wait();
Expand Down
2 changes: 2 additions & 0 deletions platforms/arm/mxrt1062/clockless_arm_mxrt1062.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class ClocklessController : public CPixelLEDController<RGB_ORDER> {
FastPin<DATA_PIN>::lo();
}

virtual uint16_t getMaxRefreshRate() const { return 400; }

protected:

virtual void showPixels(PixelController<RGB_ORDER> & pixels) {
Expand Down

0 comments on commit 898a1e2

Please sign in to comment.