Mercurial > louis > kiibohd-controller
comparison Output/pjrcUSB/arm/usb_keyboard.c @ 439:68e19d7c953e
Adding proper remote wake-up support
- Maintains a sleep state variable (may be able to use as a signal in the future)
- On the first keypress, hold the RESUME signal for 10 ms (spec says between 1 and 15 ms)
- Removed some messages that were affecting sleep state
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Tue, 17 May 2016 01:18:14 -0700 |
parents | 06a54d582bf8 |
children | 56237ba5da6f |
comparison
equal
deleted
inserted
replaced
438:f10c2dad7f55 | 439:68e19d7c953e |
---|---|
125 | 125 |
126 if ( ++wait_count > TX_TIMEOUT || transmit_previous_timeout ) | 126 if ( ++wait_count > TX_TIMEOUT || transmit_previous_timeout ) |
127 { | 127 { |
128 transmit_previous_timeout = 1; | 128 transmit_previous_timeout = 1; |
129 warn_print("USB Transmit Timeout..."); | 129 warn_print("USB Transmit Timeout..."); |
130 USBKeys_Changed = USBKeyChangeState_None; // Indicate packet lost | |
130 return; | 131 return; |
131 } | 132 } |
132 yield(); | 133 yield(); |
133 } | 134 } |
134 | 135 |