Skip to content

Commit

Permalink
Make constants constant
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebrait committed Jan 19, 2022
1 parent 8e73e46 commit 281b126
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions keyboards/gmmk/pro/ansi/keymaps/andrebrait/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ void rgb_matrix_indicators_user() {
#if RGB_CONFIRMATION_BLINKING_TIME > 0
if (effect_started_time > 0) {
/* Render blinking EFFECTS */
uint16_t deltaTime = sync_timer_elapsed(effect_started_time);
const uint16_t deltaTime = sync_timer_elapsed(effect_started_time);
if (deltaTime <= RGB_CONFIRMATION_BLINKING_TIME) {
uint8_t led_state = ((~deltaTime) >> TIME_SELECTED_BIT) & 0x01;
uint8_t val_r = led_state * r_effect;
uint8_t val_g = led_state * g_effect;
uint8_t val_b = led_state * b_effect;
const uint8_t led_state = ((~deltaTime) >> TIME_SELECTED_BIT) & 0x01;
const uint8_t val_r = led_state * r_effect;
const uint8_t val_g = led_state * g_effect;
const uint8_t val_b = led_state * b_effect;
rgb_matrix_set_color_all(val_r, val_g, val_b);
if (host_keyboard_led_state().caps_lock) {
set_rgb_caps_leds();
Expand Down

0 comments on commit 281b126

Please sign in to comment.