Skip to content

Commit

Permalink
Ensure getMaxRefreshRate() returns a non-zero default for Teensy 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyMacGyver committed May 25, 2020
1 parent 4e5f325 commit 60c05c3
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 60c05c3

Please sign in to comment.