diff options
author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2016-11-26 13:24:53 +0700 |
---|---|---|
committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2016-11-26 13:24:53 +0700 |
commit | 9a071f051ca9dffdf64b68ea59b2424e37bc51e7 (patch) | |
tree | 7c59dd33a8636d90cdfb7bcac1348687652187c9 | |
parent | 631b8999a737ec73610f8b569b1f775cadf08172 (diff) | |
download | qmk_firmware-9a071f051ca9dffdf64b68ea59b2424e37bc51e7.tar.gz qmk_firmware-9a071f051ca9dffdf64b68ea59b2424e37bc51e7.zip |
Make PS2 init delay configurable. Some devices are not fully powered up
after 1s.
-rw-r--r-- | tmk_core/protocol/ps2_mouse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tmk_core/protocol/ps2_mouse.c b/tmk_core/protocol/ps2_mouse.c index c3e8b3c1c3..82f6966e8e 100644 --- a/tmk_core/protocol/ps2_mouse.c +++ b/tmk_core/protocol/ps2_mouse.c @@ -26,6 +26,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "print.h" #include "debug.h" +#ifndef PS2_INIT_DELAY +#define PS2_INIT_DELAY 1000 +#endif static report_mouse_t mouse_report = {}; @@ -39,7 +42,7 @@ uint8_t ps2_mouse_init(void) { ps2_host_init(); - _delay_ms(1000); // wait for powering up + _delay_ms(PS2_INIT_DELAY); // wait for powering up // send Reset rcv = ps2_host_send(0xFF); |