瀏覽代碼

Forgot to use define in delay instead of hardcoded number

Ofer Plesser 8 年之前
父節點
當前提交
f0768f8be9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tmk_core/protocol/ps2_mouse.c

+ 1 - 1
tmk_core/protocol/ps2_mouse.c

@@ -88,7 +88,7 @@ static inline void ps2_mouse_scroll_button_task(report_mouse_t *mouse_report);
 void ps2_mouse_init(void) {
     ps2_host_init();
 
-    _delay_ms(1000);    // wait for powering up
+    _delay_ms(PS2_MOUSE_INIT_DELAY);    // wait for powering up
 
     PS2_MOUSE_SEND(PS2_MOUSE_RESET, "ps2_mouse_init: sending reset");