Mercurial > louis > kiibohd-controller
comparison 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 |
comparison
equal
deleted
inserted
replaced
438:f10c2dad7f55 | 439:68e19d7c953e |
---|---|
732 return; | 732 return; |
733 | 733 |
734 // Update USB current | 734 // Update USB current |
735 Output_USBCurrent_Available = current; | 735 Output_USBCurrent_Available = current; |
736 | 736 |
737 /* XXX Affects sleep states due to USB messages | |
737 unsigned int total_current = Output_current_available(); | 738 unsigned int total_current = Output_current_available(); |
738 info_msg("USB Available Current Changed. Total Available: "); | 739 info_msg("USB Available Current Changed. Total Available: "); |
739 printInt32( total_current ); | 740 printInt32( total_current ); |
740 print(" mA" NL); | 741 print(" mA" NL); |
742 */ | |
741 | 743 |
742 // Send new total current to the Scan Modules | 744 // Send new total current to the Scan Modules |
743 Scan_currentChange( Output_current_available() ); | 745 Scan_currentChange( Output_current_available() ); |
744 } | 746 } |
745 | 747 |