浏览代码

[Keyboard] fix short circuit in led_update_kb for quefrency rev3 (#13752)

Co-authored-by: Jonavin <=>
Jonavin 3 年之前
父节点
当前提交
9088df04c3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      keyboards/keebio/quefrency/rev3/rev3.c

+ 1 - 1
keyboards/keebio/quefrency/rev3/rev3.c

@@ -24,7 +24,7 @@ void matrix_init_kb(void) {
 
 
 bool led_update_kb(led_t led_state) {
 bool led_update_kb(led_t led_state) {
     // Only update if left half
     // Only update if left half
-    if (isLeftHand && led_update_user(led_state)) {
+    if (led_update_user(led_state) && isLeftHand) {
         writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
         writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
     }
     }
     return true;
     return true;