diff options
author | Joshua Diamond <josh@windowoffire.com> | 2021-02-01 19:12:41 -0500 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-02-02 09:29:51 -0800 |
commit | 0aaf72a2b9bef2fb035f03dfa14fdbd6ef01fbfb (patch) | |
tree | 837806eeb0d28a3c01592b70bca10caf756ddcc5 /tmk_core/common/avr/suspend.c | |
parent | 9ee0271c00c05ee5dddb7d77b04b5ec2fac2bd41 (diff) |
Address wake from sleep instability (#11450)
* resolve race condition between suspend and wake in LUFA
* avoid multiple calls to suspend_power_down() / suspend_wakeup_init()
* Remove duplicate suspend_power_down_kb() call
* pause on wakeup to wait for USB state to settle
* need the repeated suspend_power_down() (that's where the sleep is)
* more efficient implementation
* fine tune the pause after sending wakeup
* speculative chibios version of pause-after-wake
* make wakeup delay configurable, and adjust value
* better location for wakeup delay
Diffstat (limited to 'tmk_core/common/avr/suspend.c')
-rw-r--r-- | tmk_core/common/avr/suspend.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c index a879d6bab0..807c837e36 100644 --- a/tmk_core/common/avr/suspend.c +++ b/tmk_core/common/avr/suspend.c @@ -110,7 +110,6 @@ static void power_down(uint8_t wdto) { rgblight_disable_noeeprom(); } # endif - suspend_power_down_kb(); // TODO: more power saving // See PicoPower application note |