summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-11-19 23:41:46 +0000
committerQMK Bot <hello@qmk.fm>2022-11-19 23:41:46 +0000
commit57956f506b1d4182600b351385ae60afc9c5e8db (patch)
tree7b73c3dde7a200be0a5c6659a70241bea7d12651
parent0984cb8ca5a1a870418ba960c5e77cc36ed2d63a (diff)
parent37c271460a537cb395c3bb9fbf84419b54aa00a8 (diff)
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--keyboards/annepro2/annepro2_ble.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/keyboards/annepro2/annepro2_ble.c b/keyboards/annepro2/annepro2_ble.c
index 64364a6c8e..375f551cc2 100644
--- a/keyboards/annepro2/annepro2_ble.c
+++ b/keyboards/annepro2/annepro2_ble.c
@@ -36,12 +36,12 @@ static host_driver_t ap2_ble_driver = {
static uint8_t ble_mcu_wakeup[11] = {0x7b, 0x12, 0x53, 0x00, 0x03, 0x00, 0x01, 0x7d, 0x02, 0x01, 0x02};
-static uint8_t ble_mcu_start_broadcast[11] = {
- 0x7b, 0x12, 0x53, 0x00, 0x03, 0x00, 0x00, 0x7d, 0x40, 0x01, 0x00 // Broadcast ID[0-3]
+static uint8_t ble_mcu_start_broadcast[10] = {
+ 0x7b, 0x12, 0x53, 0x00, 0x03, 0x00, 0x00, 0x7d, 0x40, 0x01, // Broadcast ID[0-3]
};
-static uint8_t ble_mcu_connect[11] = {
- 0x7b, 0x12, 0x53, 0x00, 0x03, 0x00, 0x00, 0x7d, 0x40, 0x04, 0x00 // Connect ID [0-3]
+static uint8_t ble_mcu_connect[10] = {
+ 0x7b, 0x12, 0x53, 0x00, 0x03, 0x00, 0x00, 0x7d, 0x40, 0x04, // Connect ID [0-3]
};
static uint8_t ble_mcu_send_report[10] = {
@@ -76,6 +76,7 @@ void annepro2_ble_broadcast(uint8_t port) {
// sdPut(&SD1, 0x00);
sdWrite(&SD1, ble_mcu_start_broadcast, sizeof(ble_mcu_start_broadcast));
sdPut(&SD1, port);
+ sdPut(&SD1, 0x00);
static int lastBroadcast = -1;
if (lastBroadcast == port) {
annepro2_ble_connect(port);
@@ -89,6 +90,7 @@ void annepro2_ble_connect(uint8_t port) {
}
sdWrite(&SD1, ble_mcu_connect, sizeof(ble_mcu_connect));
sdPut(&SD1, port);
+ sdPut(&SD1, 0x00);
ap2_ble_swtich_ble_driver();
}