comparison Output/pjrcUSB/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 d3cef419c849
children 380e1f0123d0
comparison
equal deleted inserted replaced
438:f10c2dad7f55 439:68e19d7c953e
711 return; 711 return;
712 712
713 // Update USB current 713 // Update USB current
714 Output_USBCurrent_Available = current; 714 Output_USBCurrent_Available = current;
715 715
716 /* XXX Affects sleep states due to USB messages
716 unsigned int total_current = Output_current_available(); 717 unsigned int total_current = Output_current_available();
717 info_msg("USB Available Current Changed. Total Available: "); 718 info_msg("USB Available Current Changed. Total Available: ");
718 printInt32( total_current ); 719 printInt32( total_current );
719 print(" mA" NL); 720 print(" mA" NL);
721 */
720 722
721 // Send new total current to the Scan Modules 723 // Send new total current to the Scan Modules
722 Scan_currentChange( Output_current_available() ); 724 Scan_currentChange( Output_current_available() );
723 } 725 }
724 726