浏览代码

Fix RG Sleep issues for Teensy Controllers

Appearenly, teensy controllers have some issues with waking up.  If the rgblight is called "too soon", it will cause the controller to lock up, intermittently. Adding a 10 ms
delay seems to fix this issue, as it lets it have enough time to handle things properly.

This has been tested extensively on my Ergodox EZ, and can be seen in the @drashna userspace, under the "suspend_wakeup_init_user" function.
Drashna Jaelre 7 年之前
父节点
当前提交
32ff7be266
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tmk_core/common/avr/suspend.c

+ 3 - 0
tmk_core/common/avr/suspend.c

@@ -189,6 +189,9 @@ void suspend_wakeup_init(void)
 #endif
 	led_set(host_keyboard_leds());
 #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
+#ifdef BOOTLOADER_TEENSY
+  wait_ms(10);
+#endif
   rgblight_enable_noeeprom();
 #ifdef RGBLIGHT_ANIMATIONS
   rgblight_timer_enable();