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:
authorMark Kriegsman <kriegsman@tr.org>2015-01-11 17:36:06 +0300
committerMark Kriegsman <kriegsman@tr.org>2015-01-11 17:36:06 +0300
commit46f0405a5263c4a2be4054676ce345fa61642807 (patch)
treee6d194e3734e7202f172d2ca7912a78fde2e77d1
parente2b687810ea6fdd1e294cbc242b01605cf56a42b (diff)
Pass timebase through beat16, fixes bug #117
-rw-r--r--lib8tion.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib8tion.h b/lib8tion.h
index a32e6b49..638cf18a 100644
--- a/lib8tion.h
+++ b/lib8tion.h
@@ -1896,7 +1896,7 @@ LIB8STATIC uint16_t beat16( accum88 beats_per_minute, uint32_t timebase = 0)
{
// Convert simple 8-bit BPM's to full Q8.8 accum88's if needed
if( beats_per_minute < 256) beats_per_minute <<= 8;
- return beat88(beats_per_minute);
+ return beat88(beats_per_minute, timebase);
}
// beat8 generates an 8-bit 'sawtooth' wave at a given BPM