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>2019-01-20 03:51:06 +0300
committerGitHub <noreply@github.com>2019-01-20 03:51:06 +0300
commit010edf0b30b5dbbb5d0035a8901b2cc2370ec046 (patch)
tree2407a5074fbc2f622386b1a074452112ac8e0ce8
parent870010f3c12310ce0851de03a0bbed8225e336fc (diff)
parent3a70156464be4f557b4438da9904baae8c4d278c (diff)
Merge pull request #658 from leebyron/patch-1
Fix lerp16by16 where uint32_t should be uint16_t
-rw-r--r--lib8tion.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib8tion.h b/lib8tion.h
index 42f985de..24c5d0ab 100644
--- a/lib8tion.h
+++ b/lib8tion.h
@@ -477,7 +477,7 @@ LIB8STATIC uint16_t lerp16by16( uint16_t a, uint16_t b, fract16 frac)
uint16_t result;
if( b > a ) {
uint16_t delta = b - a;
- uint32_t scaled = scale16(delta, frac);
+ uint16_t scaled = scale16(delta, frac);
result = a + scaled;
} else {
uint16_t delta = a - b;