Jelajahi Sumber

[Keymap] removed else in numlock led if statement (#18304)

syntax-magic 2 tahun lalu
induk
melakukan
6321cbaadd
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      keyboards/kprepublic/bm40hsrgb/keymaps/dan/keymap.c

+ 1 - 2
keyboards/kprepublic/bm40hsrgb/keymaps/dan/keymap.c

@@ -320,8 +320,7 @@ void rgb_matrix_indicators_user(void) {
     }
 
     //Numlock led
-    if (led_state.num_lock) {
-    } else {
+    if (!led_state.num_lock) {
         rgb_matrix_set_color(0, 145, 145, 145);
     }