summaryrefslogtreecommitdiffstats
path: root/quantum/rgb_matrix.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2018-06-12 16:59:35 +0200
committerJack Humbert <jack.humb@gmail.com>2018-06-12 16:59:35 +0200
commit998ddbb122c9d3e2a77bd4e88c881b225ca0d569 (patch)
treeca91ff7ad3c4866555d1e623fe9ea05276397e1c /quantum/rgb_matrix.c
parentc0095710a7c7e9bd94aa9f4dd814dc28d718c731 (diff)
parent06487daaddf923d635e8a528d1eb644b875a73f6 (diff)
downloadqmk_firmware-998ddbb122c9d3e2a77bd4e88c881b225ca0d569.tar.gz
qmk_firmware-998ddbb122c9d3e2a77bd4e88c881b225ca0d569.tar.xz
Merge branch 'master' of github.com:qmk/qmk_firmware into hf/shinydox
Diffstat (limited to 'quantum/rgb_matrix.c')
-rw-r--r--quantum/rgb_matrix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c
index 992ce99de..8c41fc54d 100644
--- a/quantum/rgb_matrix.c
+++ b/quantum/rgb_matrix.c
@@ -149,8 +149,9 @@ void rgb_matrix_set_suspend_state(bool state) {
void rgb_matrix_test(void) {
// Mask out bits 4 and 5
- // This 2-bit value will stay the same for 16 ticks.
- switch ( (g_tick & 0x30) >> 4 )
+ // Increase the factor to make the test animation slower (and reduce to make it faster)
+ uint8_t factor = 10;
+ switch ( (g_tick & (0b11 << factor)) >> factor )
{
case 0:
{