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:
authorDaniel Garcia <danielgarcia@gmail.com>2014-10-30 22:52:37 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2014-10-30 22:52:37 +0300
commit4658c8bec68aacdbd09c4f7d2508de18a10edf9a (patch)
tree9c42f1a8fc34cce3187de55a7151970928e07c2c /clockless_trinket.h
parent7adedb990ff9e1ee1a72f68247a579d984312075 (diff)
Centralize setting the interrupt threshold adjustment
Diffstat (limited to 'clockless_trinket.h')
-rw-r--r--clockless_trinket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clockless_trinket.h b/clockless_trinket.h
index f0637a70..0d3451b7 100644
--- a/clockless_trinket.h
+++ b/clockless_trinket.h
@@ -257,7 +257,7 @@ protected:
ADJDITHER2(d2,e2);
cli();
- if((TCNT0-lasttime) > ((WAIT_TIME-10)/US_PER_TICK)) { sei(); return; }
+ if((TCNT0-lasttime) > ((WAIT_TIME-INTERRUPT_THRESHOLD)/US_PER_TICK)) { sei(); return; }
// Sum of the clock counts across each row should be 10 for 8Mhz, WS2811
// The values in the D1/D2/D3 indicate how many cycles the previous column takes
// to allow things to line back up.