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>2017-05-28 14:52:34 +0300
committerMark Kriegsman <kriegsman@tr.org>2017-05-28 14:52:34 +0300
commitf1a3a82957da40e221015bad0e2e9a3d52edb02f (patch)
treef8e1270dcb78fc26255a067484a58ddd51708063
parent06a5abcf1fa65115adb42a79e112a34e6c8ff5a7 (diff)
Update ease8InOutQuad for 'fixed' scale8.
-rw-r--r--lib8tion.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib8tion.h b/lib8tion.h
index fdd10b49..37c0cba5 100644
--- a/lib8tion.h
+++ b/lib8tion.h
@@ -582,7 +582,7 @@ LIB8STATIC uint8_t ease8InOutQuad( uint8_t i)
if( j & 0x80 ) {
j = 255 - j;
}
- uint8_t jj = scale8( j, (j+1));
+ uint8_t jj = scale8( j, j);
uint8_t jj2 = jj << 1;
if( i & 0x80 ) {
jj2 = 255 - jj2;