diff options
author | lokher <lokher@gmail.com> | 2022-08-10 15:19:01 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-08-12 15:30:02 +0800 |
commit | 5c61a8b0bcd153b7c393e887794747a5e7821a78 (patch) | |
tree | 72637eaa1799cd15594c7829012b23a9e3f1596b /keyboards/keychron/bluetooth/indicator.c | |
parent | c3f7cee76404e15b90bb399f3eebb34ec2a47354 (diff) |
Fix indicating bug
Diffstat (limited to 'keyboards/keychron/bluetooth/indicator.c')
-rw-r--r-- | keyboards/keychron/bluetooth/indicator.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/keychron/bluetooth/indicator.c b/keyboards/keychron/bluetooth/indicator.c index 0936f4ea97..bfe0f5cb17 100644 --- a/keyboards/keychron/bluetooth/indicator.c +++ b/keyboards/keychron/bluetooth/indicator.c @@ -65,7 +65,7 @@ indicator_config_t indicator_config; static bluetooth_state_t indicator_state; static uint16_t next_period; static indicator_type_t type; -static uint32_t indicator_timer_buffer; +static uint32_t indicator_timer_buffer = 0; static uint32_t battery_low_indicator = 0; #if defined(LED_MATRIX_ENABLE) || defined(RGB_MATRIX_ENABLE) @@ -79,6 +79,8 @@ static pin_t host_led_pin_list[HOST_DEVICES_COUNT] = HOST_LED_PIN_LIST; #endif void indicator_init(void) { + memset(&indicator_config, 0, sizeof(indicator_config)); + #ifdef HOST_LED_PIN_LIST for (uint8_t i = 0; i < HOST_DEVICES_COUNT; i++) { setPinOutput(host_led_pin_list[i]); |