diff options
author | lalalademaxiya1 <2831039915@qq.com> | 2023-10-23 13:27:12 +0800 |
---|---|---|
committer | lalalademaxiya1 <2831039915@qq.com> | 2023-10-23 13:27:12 +0800 |
commit | 1df560b679d2c8e8c6bf0e2156127d363eba0ce7 (patch) | |
tree | e9855c39a6059c96c55bd03aba703d05a5e17994 | |
parent | 76937cbc3d7db45d1b203018dbf78f2fd3837591 (diff) |
Update bluetooth.c
-rw-r--r-- | keyboards/keychron/bluetooth/bluetooth.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/keyboards/keychron/bluetooth/bluetooth.c b/keyboards/keychron/bluetooth/bluetooth.c index e87b435db4..481099af67 100644 --- a/keyboards/keychron/bluetooth/bluetooth.c +++ b/keyboards/keychron/bluetooth/bluetooth.c @@ -291,14 +291,6 @@ uint8_t bluetooth_keyboard_leds(void) { extern keymap_config_t keymap_config; void bluetooth_send_keyboard(report_keyboard_t *report) { - if (battery_is_critical_low()) { - report_keyboard_t empty_report; - memset(&empty_report, 0, sizeof(empty_report)); - if (memcmp(keyboard_report, &empty_report, sizeof(report_keyboard_t)) != 0) { - return; - } - } - if (bt_state == BLUETOOTH_PARING && !pincodeEntry) return; if (bt_state == BLUETOOTH_CONNECTED || (bt_state == BLUETOOTH_PARING && pincodeEntry)) { @@ -403,7 +395,7 @@ void bluetooth_low_battery_shutdown(void) { indicator_battery_low_backlit_enable(false); #endif clear_keyboard(); - wait_ms(50); + send_keyboard_report(); bluetooth_disconnect(); } |