Mercurial > louis > kiibohd-controller
diff Output/usbMuxUart/output_com.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 | f10c2dad7f55 |
children | 380e1f0123d0 |
line wrap: on
line diff
--- a/Output/usbMuxUart/output_com.c Mon May 16 23:25:08 2016 -0700 +++ b/Output/usbMuxUart/output_com.c Tue May 17 01:18:14 2016 -0700 @@ -734,10 +734,12 @@ // Update USB current Output_USBCurrent_Available = current; + /* XXX Affects sleep states due to USB messages unsigned int total_current = Output_current_available(); info_msg("USB Available Current Changed. Total Available: "); printInt32( total_current ); print(" mA" NL); + */ // Send new total current to the Scan Modules Scan_currentChange( Output_current_available() );