summaryrefslogtreecommitdiff
path: root/keyboards/annepro2
diff options
context:
space:
mode:
authorSean Jasin <seangotskillz@gmail.com>2022-11-15 03:33:37 -0600
committerGitHub <noreply@github.com>2022-11-15 01:33:37 -0800
commited70f42638284449b95786479e16c0bd8026331d (patch)
tree70ce46ab5de7bb382266328cd3dad627fe24d485 /keyboards/annepro2
parent30b2dbe369b3a61d1d6681b0a689dbcdd41fc221 (diff)
[Keyboard] change BT LEDs so no longer hard coded in Anne Pro (#18934)
Diffstat (limited to 'keyboards/annepro2')
-rw-r--r--keyboards/annepro2/annepro2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/annepro2/annepro2.c b/keyboards/annepro2/annepro2.c
index 4edafe0702..b4dc03db6e 100644
--- a/keyboards/annepro2/annepro2.c
+++ b/keyboards/annepro2/annepro2.c
@@ -155,22 +155,22 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
case KC_AP2_BT1:
annepro2_ble_broadcast(0);
/* FIXME: This hardcodes col/row position */
- ap2_led_blink(0, 1, blue, 8, 50);
+ ap2_led_blink(record->event.key.row, record->event.key.col, blue, 8, 50);
return false;
case KC_AP2_BT2:
annepro2_ble_broadcast(1);
- ap2_led_blink(0, 2, blue, 8, 50);
+ ap2_led_blink(record->event.key.row, record->event.key.col, blue, 8, 50);
return false;
case KC_AP2_BT3:
annepro2_ble_broadcast(2);
- ap2_led_blink(0, 3, blue, 8, 50);
+ ap2_led_blink(record->event.key.row, record->event.key.col, blue, 8, 50);
return false;
case KC_AP2_BT4:
annepro2_ble_broadcast(3);
- ap2_led_blink(0, 4, blue, 8, 50);
+ ap2_led_blink(record->event.key.row, record->event.key.col, blue, 8, 50);
return false;
case KC_AP2_USB: