浏览代码

core: Remove unused warning. Fix tmk_keyboard/#293

tags/v2.9
tmk 8 年前
父节点
当前提交
5c89d73755
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0
    9
      tmk_core/common/action_tapping.c

+ 0
- 9
tmk_core/common/action_tapping.c 查看文件

@@ -30,7 +30,6 @@ static bool process_tapping(keyrecord_t *record);
static bool waiting_buffer_enq(keyrecord_t record);
static void waiting_buffer_clear(void);
static bool waiting_buffer_typed(keyevent_t event);
static bool waiting_buffer_has_anykey_pressed(void);
static void waiting_buffer_scan_tap(void);
static void debug_tapping_key(void);
static void debug_waiting_buffer(void);
@@ -324,14 +323,6 @@ bool waiting_buffer_typed(keyevent_t event)
return false;
}

bool waiting_buffer_has_anykey_pressed(void)
{
for (uint8_t i = waiting_buffer_tail; i != waiting_buffer_head; i = (i + 1) % WAITING_BUFFER_SIZE) {
if (waiting_buffer[i].event.pressed) return true;
}
return false;
}

/* scan buffer for tapping */
void waiting_buffer_scan_tap(void)
{

正在加载...
取消
保存