mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 13:22:31 +01:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									df8e417032
								
							
						
					
					
						commit
						32ff7be266
					
				| @ -189,6 +189,9 @@ void suspend_wakeup_init(void) | |||||||
| #endif | #endif | ||||||
| 	led_set(host_keyboard_leds()); | 	led_set(host_keyboard_leds()); | ||||||
| #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) | ||||||
|  | #ifdef BOOTLOADER_TEENSY | ||||||
|  |   wait_ms(10); | ||||||
|  | #endif | ||||||
|   rgblight_enable_noeeprom(); |   rgblight_enable_noeeprom(); | ||||||
| #ifdef RGBLIGHT_ANIMATIONS | #ifdef RGBLIGHT_ANIMATIONS | ||||||
|   rgblight_timer_enable(); |   rgblight_timer_enable(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Drashna Jaelre
						Drashna Jaelre