summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-03-12 10:24:16 +0000
committerQMK Bot <hello@qmk.fm>2023-03-12 10:24:16 +0000
commitb74f2c7b86d329831b30fd4fef9833dd34d8078d (patch)
treea80510b6bd257f739e2d192efadb4b4a608135d5
parentb27f9c636a62f8663f5904c03ebe3759dbadb76f (diff)
parenta5e7390419a23c6db9cb62810f8ff1645d20b6a3 (diff)
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--keyboards/annepro2/annepro2.c4
-rw-r--r--keyboards/annepro2/ap2_led.c2
-rw-r--r--keyboards/annepro2/ap2_led.h1
-rw-r--r--keyboards/annepro2/protocol.h2
4 files changed, 2 insertions, 7 deletions
diff --git a/keyboards/annepro2/annepro2.c b/keyboards/annepro2/annepro2.c
index e1292b3517..170eb8c175 100644
--- a/keyboards/annepro2/annepro2.c
+++ b/keyboards/annepro2/annepro2.c
@@ -101,11 +101,9 @@ void keyboard_post_init_kb(void) {
101 // loop to clear out receive buffer from ble wakeup 101 // loop to clear out receive buffer from ble wakeup
102 while (!sdGetWouldBlock(&SD1)) sdGet(&SD1); 102 while (!sdGetWouldBlock(&SD1)) sdGet(&SD1);
103 103
104 ap2_led_get_status();
105
106 #ifdef RGB_MATRIX_ENABLE 104 #ifdef RGB_MATRIX_ENABLE
107 ap2_led_enable();
108 ap2_led_set_manual_control(1); 105 ap2_led_set_manual_control(1);
106 ap2_led_enable();
109 #endif 107 #endif
110 108
111 keyboard_post_init_user(); 109 keyboard_post_init_user();
diff --git a/keyboards/annepro2/ap2_led.c b/keyboards/annepro2/ap2_led.c
index c1d7c8166e..70585a511f 100644
--- a/keyboards/annepro2/ap2_led.c
+++ b/keyboards/annepro2/ap2_led.c
@@ -60,8 +60,6 @@ void ap2_led_enable(void) { proto_tx(CMD_LED_ON, NULL, 0, 3); }
60 60
61void ap2_led_set_profile(uint8_t prof) { proto_tx(CMD_LED_SET_PROFILE, &prof, sizeof(prof), 3); } 61void ap2_led_set_profile(uint8_t prof) { proto_tx(CMD_LED_SET_PROFILE, &prof, sizeof(prof), 3); }
62 62
63void ap2_led_get_status(void) { proto_tx(CMD_LED_GET_STATUS, NULL, 0, 3); }
64
65void ap2_led_next_profile(void) { proto_tx(CMD_LED_NEXT_PROFILE, NULL, 0, 3); } 63void ap2_led_next_profile(void) { proto_tx(CMD_LED_NEXT_PROFILE, NULL, 0, 3); }
66 64
67void ap2_led_next_intensity(void) { proto_tx(CMD_LED_NEXT_INTENSITY, NULL, 0, 3); } 65void ap2_led_next_intensity(void) { proto_tx(CMD_LED_NEXT_INTENSITY, NULL, 0, 3); }
diff --git a/keyboards/annepro2/ap2_led.h b/keyboards/annepro2/ap2_led.h
index ff2a05aff5..494ada54ec 100644
--- a/keyboards/annepro2/ap2_led.h
+++ b/keyboards/annepro2/ap2_led.h
@@ -49,7 +49,6 @@ void ap2_set_IAP(void);
49void ap2_led_disable(void); 49void ap2_led_disable(void);
50void ap2_led_enable(void); 50void ap2_led_enable(void);
51void ap2_led_set_profile(uint8_t prof); 51void ap2_led_set_profile(uint8_t prof);
52void ap2_led_get_status(void);
53void ap2_led_next_profile(void); 52void ap2_led_next_profile(void);
54void ap2_led_prev_profile(void); 53void ap2_led_prev_profile(void);
55void ap2_led_next_intensity(void); 54void ap2_led_next_intensity(void);
diff --git a/keyboards/annepro2/protocol.h b/keyboards/annepro2/protocol.h
index d38fd0a66e..0211ccefc4 100644
--- a/keyboards/annepro2/protocol.h
+++ b/keyboards/annepro2/protocol.h
@@ -36,7 +36,7 @@ enum {
36 CMD_LED_MASK_SET_MONO = 0x12, 36 CMD_LED_MASK_SET_MONO = 0x12,
37 37
38 /* Reactive / status */ 38 /* Reactive / status */
39 CMD_LED_GET_STATUS = 0x20, 39 CMD_LED_GET_STATUS = 0x20, /* unused */
40 CMD_LED_KEY_BLINK = 0x21, 40 CMD_LED_KEY_BLINK = 0x21,
41 CMD_LED_KEY_DOWN = 0x22, 41 CMD_LED_KEY_DOWN = 0x22,
42 CMD_LED_KEY_UP = 0x23, /* TODO */ 42 CMD_LED_KEY_UP = 0x23, /* TODO */