mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-22 00:16:41 +06:00
Fix compiling error caused by commit 0cd4ee
This commit is contained in:
parent
07208a131c
commit
eba583cfa7
|
@ -452,6 +452,15 @@ void bluetooth_task(void) {
|
|||
lpm_task();
|
||||
}
|
||||
|
||||
void send_string_task(void) {
|
||||
if (get_transport() == TRANSPORT_BLUETOOTH && bluetooth_get_state()== BLUETOOTH_CONNECTED) {
|
||||
bluetooth_transport.task();
|
||||
#ifndef DISABLE_REPORT_BUFFER
|
||||
report_buffer_task();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
bluetooth_state_t bluetooth_get_state(void) {
|
||||
return bt_state;
|
||||
};
|
||||
|
|
|
@ -77,9 +77,11 @@ void bluetooth_enter_disconnected_kb(uint8_t host_idx);
|
|||
void bluetooth_enter_pin_code_entry_kb(void);
|
||||
void bluetooth_exit_pin_code_entry_kb(void);
|
||||
|
||||
void bluetooth_task(void);
|
||||
void bluetooth_pre_task(void);
|
||||
void bluetooth_post_task(void);
|
||||
void bluetooth_task(void);
|
||||
void bluetooth_pre_task(void);
|
||||
void bluetooth_post_task(void);
|
||||
void send_string_task(void);
|
||||
|
||||
bluetooth_state_t bluetooth_get_state(void);
|
||||
|
||||
void bluetooth_low_battery_shutdown(void);
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
#ifdef LK_WIRELESS_ENABLE
|
||||
#include "wireless.h"
|
||||
#endif
|
||||
#if defined(KC_BLUETOOTH_ENABLE)
|
||||
#include "bluetooth.h"
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(AUDIO_ENABLE) && defined(SENDSTRING_BELL)
|
||||
|
@ -182,7 +185,7 @@ void send_string_with_delay(const char *string, uint8_t interval) {
|
|||
keycode = *(++string);
|
||||
}
|
||||
while (ms--) {
|
||||
#ifdef LK_WIRELESS_ENABLE
|
||||
#if defined(LK_WIRELESS_ENABLE) || defined(KC_BLUETOOTH_ENABLE)
|
||||
send_string_task();
|
||||
#endif
|
||||
wait_ms(1);
|
||||
|
@ -196,13 +199,13 @@ void send_string_with_delay(const char *string, uint8_t interval) {
|
|||
{
|
||||
uint8_t ms = interval;
|
||||
while (ms--) {
|
||||
#ifdef LK_WIRELESS_ENABLE
|
||||
#if defined(LK_WIRELESS_ENABLE) || defined(KC_BLUETOOTH_ENABLE)
|
||||
send_string_task();
|
||||
#endif
|
||||
wait_ms(1);
|
||||
}
|
||||
}
|
||||
#ifdef LK_WIRELESS_ENABLE
|
||||
#if defined(LK_WIRELESS_ENABLE) || defined(KC_BLUETOOTH_ENABLE)
|
||||
send_string_task();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user