aboutsummaryrefslogtreecommitdiffstats
path: root/users/xtonhasvim
diff options
context:
space:
mode:
authorXin-Xin Wang <xin-xinw@musiclifephilosophy.com>2018-09-03 19:55:06 -0400
committerDrashna Jaelre <drashna@live.com>2018-09-03 16:55:06 -0700
commitaa795dc33ee1c854a3ea5a3cb3d15e7e68be89d6 (patch)
tree5137ef32735dcd0f99ad84fb6124188537650800 /users/xtonhasvim
parent07fac2fbbff871827b17eba3a3740b8991e8c5d3 (diff)
downloadfirmware-aa795dc33ee1c854a3ea5a3cb3d15e7e68be89d6.tar.gz
firmware-aa795dc33ee1c854a3ea5a3cb3d15e7e68be89d6.tar.bz2
firmware-aa795dc33ee1c854a3ea5a3cb3d15e7e68be89d6.zip
Keymap: Fix missing braces around initializer error on older gcc (#3840)
Diffstat (limited to 'users/xtonhasvim')
-rw-r--r--users/xtonhasvim/fancylighting.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/xtonhasvim/fancylighting.c b/users/xtonhasvim/fancylighting.c
index dc13df03f..a88ca4beb 100644
--- a/users/xtonhasvim/fancylighting.c
+++ b/users/xtonhasvim/fancylighting.c
@@ -45,7 +45,7 @@ void matrix_scan_keymap(void) {
uint16_t effect_start_timer = 0;
uint8_t user_rgb_mode = 0;
-LED_TYPE shadowed_led[RGBLED_NUM] = {0};
+LED_TYPE shadowed_led[RGBLED_NUM] = {{0}};
void start_firey_return(void) {
user_rgb_mode = BREATH_FIRE;
@@ -79,7 +79,7 @@ void set_color_for_offsets(uint16_t time_offset, uint16_t space_offset, uint8_t
float alpha = (time_progress + 0.1) * 7.0 - space_progress;
alpha = fmin(1.0, alpha*alpha);
- LED_TYPE px[1] = {0};
+ LED_TYPE px[1] = {{0}};
sethsv((uint16_t)(fmod(time_progress * 1.5 + space_progress,1.0)*360), 255, (uint8_t)(progress*255),&px[0]);
led[idx].r = alpha * px[0].r + ( 1.0 - alpha) * shadowed_led[idx].r;
led[idx].g = alpha * px[0].g + ( 1.0 - alpha) * shadowed_led[idx].g;