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-04-16 09:12:26 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2014-04-16 09:12:26 +0400
commit3d55f51897d322251c99ccd0dbe061728de72e4a (patch)
treefb963c52cebc8f6bda252f3b9befcc1fb9f66ecd
parentcacf500932886ff8a6e22d46d2f49c389f47bd75 (diff)
Fix issue #48 - tweak timing on UDOO - appears to handle better and bring it in line with the digix/due.
-rw-r--r--clockless_arm_sam.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clockless_arm_sam.h b/clockless_arm_sam.h
index 3a7cb108..bbf7e1b1 100644
--- a/clockless_arm_sam.h
+++ b/clockless_arm_sam.h
@@ -162,10 +162,10 @@ public:
// how long we want to wait next depends on whether or not our bit is set to 1 or 0
if(b&0x80) {
// we're a 1, wait until there's less than T3 clocks left
- while((VAL - next_mark) > (T3+TADJUST));
+ while((VAL - next_mark) > (T3));
} else {
// we're a 0, wait until there's less than (T2+T3+slop) clocks left in this bit
- while((VAL-next_mark) > (T2+T3+TADJUST+TADJUST));
+ while((VAL-next_mark) > (T2+T3+4+TADJUST+TADJUST));
}
*port=0;
b <<= 1;