summaryrefslogtreecommitdiffstats
path: root/lib/lib8tion
diff options
context:
space:
mode:
authorAlec Geatches <alecgeatches@outlook.com>2019-04-30 02:44:36 +0200
committerDrashna Jaelre <drashna@live.com>2019-04-30 02:44:36 +0200
commit75d72c221d333982d01a7d99ba4f108dc927ea50 (patch)
tree8a5ebe23270e8f4bb31caba7dc7bfb312ec4fb3f /lib/lib8tion
parent507805cd106ca5b5c739e08d37e9c689973b3b30 (diff)
downloadqmk_firmware-75d72c221d333982d01a7d99ba4f108dc927ea50.tar.gz
qmk_firmware-75d72c221d333982d01a7d99ba4f108dc927ea50.tar.xz
Change lib8tion library to be usable in user keymaps (#5598)
* Move lib8tion header-defined constant into implementation file, add to build * Move b_m16_interleave initializtion to lib8tion.c, change build to include lib8tion.c in QUANTUM_LIB_SRC * Remove left-over whitespace * Move lib8tion include by RGB_MATRIX_ENABLE code in makefile * Revert build changes and change lib8tion b_m16_interleave constant to static
Diffstat (limited to 'lib/lib8tion')
-rw-r--r--lib/lib8tion/trig8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib8tion/trig8.h b/lib/lib8tion/trig8.h
index 4907c6ff3..6ef3ce625 100644
--- a/lib/lib8tion/trig8.h
+++ b/lib/lib8tion/trig8.h
@@ -147,7 +147,7 @@ LIB8STATIC int16_t cos16( uint16_t theta)
#endif
-const uint8_t b_m16_interleave[] = { 0, 49, 49, 41, 90, 27, 117, 10 };
+static const uint8_t b_m16_interleave[8] = { 0, 49, 49, 41, 90, 27, 117, 10 };
/// Fast 8-bit approximation of sin(x). This approximation never varies more than
/// 2% from the floating point value you'd get by doing