forked from mirrors/qmk_userspace
Fix compiling error of lemokey keyboard
This commit is contained in:
parent
a07246a196
commit
9adbd8bb23
4 changed files with 24 additions and 19 deletions
|
@ -534,8 +534,6 @@ void send_string_task(void) {
|
|||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
wt_state_t wireless_get_state(void) {
|
||||
return wireless_state;
|
||||
};
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
#include "action.h"
|
||||
|
||||
#ifdef KC_DEBUG
|
||||
#define kc_printf dprintf
|
||||
# define kc_printf dprintf
|
||||
#else
|
||||
#define kc_printf(format,...)
|
||||
# define kc_printf(format, ...)
|
||||
#endif
|
||||
|
||||
/* Low power mode */
|
||||
|
@ -78,7 +78,7 @@ void wireless_disconnect(void);
|
|||
|
||||
void wireless_pairing(void);
|
||||
void wireless_pairing_ex(uint8_t host_idx, void *param);
|
||||
//bool bluetooth_is_activated(void);
|
||||
// bool bluetooth_is_activated(void);
|
||||
|
||||
void wireless_enter_reset_kb(uint8_t reason);
|
||||
void wireless_enter_discoverable_kb(uint8_t host_idx);
|
||||
|
@ -99,5 +99,3 @@ wt_state_t wireless_get_state(void);
|
|||
void wireless_low_battery_shutdown(void);
|
||||
|
||||
bool process_record_wireless(uint16_t keycode, keyrecord_t *record);
|
||||
|
||||
|
||||
|
|
|
@ -526,6 +526,15 @@ void wireless_task(void) {
|
|||
lpm_task();
|
||||
}
|
||||
|
||||
void send_string_task(void) {
|
||||
if ((get_transport() & TRANSPORT_WIRELESS) && wireless_get_state() == WT_CONNECTED) {
|
||||
wireless_transport.task();
|
||||
#ifndef DISABLE_REPORT_BUFFER
|
||||
report_buffer_task();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
wt_state_t wireless_get_state(void) {
|
||||
return wireless_state;
|
||||
};
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
#include "action.h"
|
||||
|
||||
#ifdef KC_DEBUG
|
||||
#define kc_printf dprintf
|
||||
# define kc_printf dprintf
|
||||
#else
|
||||
#define kc_printf(format,...)
|
||||
# define kc_printf(format, ...)
|
||||
#endif
|
||||
|
||||
/* Low power mode */
|
||||
|
@ -78,7 +78,7 @@ void wireless_disconnect(void);
|
|||
|
||||
void wireless_pairing(void);
|
||||
void wireless_pairing_ex(uint8_t host_idx, void *param);
|
||||
//bool bluetooth_is_activated(void);
|
||||
// bool bluetooth_is_activated(void);
|
||||
|
||||
void wireless_enter_reset_kb(uint8_t reason);
|
||||
void wireless_enter_discoverable_kb(uint8_t host_idx);
|
||||
|
@ -92,10 +92,10 @@ void wireless_enter_sleep_kb(void);
|
|||
void wireless_task(void);
|
||||
void wireless_pre_task(void);
|
||||
void wireless_post_task(void);
|
||||
void send_string_task(void);
|
||||
|
||||
wt_state_t wireless_get_state(void);
|
||||
|
||||
void wireless_low_battery_shutdown(void);
|
||||
|
||||
bool process_record_wireless(uint16_t keycode, keyrecord_t *record);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue