diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2017-04-05 10:08:25 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2017-04-09 18:34:59 +0300 |
| commit | 64d63ab42281318d891434fbc00277043298dd70 (patch) | |
| tree | 03747a21a2a5a30df3e120e117bdd51ce99346e6 /keyboards/ergodox/keymaps/default/visualizer.c | |
| parent | 1e7585e76771e1a2d8ca733fc09c19f9fa0e903c (diff) | |
| download | qmk_firmware-64d63ab42281318d891434fbc00277043298dd70.tar.gz qmk_firmware-64d63ab42281318d891434fbc00277043298dd70.zip | |
Remove the need to manually enable the visualizer
Diffstat (limited to 'keyboards/ergodox/keymaps/default/visualizer.c')
| -rw-r--r-- | keyboards/ergodox/keymaps/default/visualizer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/keyboards/ergodox/keymaps/default/visualizer.c b/keyboards/ergodox/keymaps/default/visualizer.c index 5ee49c9bc..73d864c64 100644 --- a/keyboards/ergodox/keymaps/default/visualizer.c +++ b/keyboards/ergodox/keymaps/default/visualizer.c | |||
| @@ -110,13 +110,12 @@ bool display_logo(keyframe_animation_t* animation, visualizer_state_t* state) { | |||
| 110 | // Don't worry, if the startup animation is long, you can use the keyboard like normal | 110 | // Don't worry, if the startup animation is long, you can use the keyboard like normal |
| 111 | // during that time | 111 | // during that time |
| 112 | static keyframe_animation_t startup_animation = { | 112 | static keyframe_animation_t startup_animation = { |
| 113 | .num_frames = 3, | 113 | .num_frames = 2, |
| 114 | .loop = false, | 114 | .loop = false, |
| 115 | .frame_lengths = {0, gfxMillisecondsToTicks(10000), 0}, | 115 | .frame_lengths = {0, gfxMillisecondsToTicks(10000), 0}, |
| 116 | .frame_functions = { | 116 | .frame_functions = { |
| 117 | display_logo, | 117 | display_logo, |
| 118 | backlight_keyframe_animate_color, | 118 | backlight_keyframe_animate_color, |
| 119 | enable_visualization | ||
| 120 | }, | 119 | }, |
| 121 | }; | 120 | }; |
| 122 | 121 | ||
| @@ -140,7 +139,7 @@ static keyframe_animation_t suspend_animation = { | |||
| 140 | }; | 139 | }; |
| 141 | 140 | ||
| 142 | static keyframe_animation_t resume_animation = { | 141 | static keyframe_animation_t resume_animation = { |
| 143 | .num_frames = 5, | 142 | .num_frames = 4, |
| 144 | .loop = false, | 143 | .loop = false, |
| 145 | .frame_lengths = {0, 0, 0, gfxMillisecondsToTicks(10000), 0}, | 144 | .frame_lengths = {0, 0, 0, gfxMillisecondsToTicks(10000), 0}, |
| 146 | .frame_functions = { | 145 | .frame_functions = { |
| @@ -148,7 +147,6 @@ static keyframe_animation_t resume_animation = { | |||
| 148 | backlight_keyframe_enable, | 147 | backlight_keyframe_enable, |
| 149 | display_logo, | 148 | display_logo, |
| 150 | backlight_keyframe_animate_color, | 149 | backlight_keyframe_animate_color, |
| 151 | enable_visualization, | ||
| 152 | }, | 150 | }, |
| 153 | }; | 151 | }; |
| 154 | 152 | ||
