mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 05:12:33 +01:00 
			
		
		
		
	Added missing shutdown_user() hook (#9180)
* add missing shutdown_user() * use reset_keyboard() from quantum
This commit is contained in:
		
							parent
							
								
									6ca00c2152
								
							
						
					
					
						commit
						d8f76f9e6d
					
				| @ -359,15 +359,8 @@ static bool command_common(uint8_t code) { | ||||
|         // jump to bootloader
 | ||||
|         case MAGIC_KC(MAGIC_KEY_BOOTLOADER): | ||||
|         case MAGIC_KC(MAGIC_KEY_BOOTLOADER_ALT): | ||||
|             clear_keyboard();  // clear to prevent stuck keys
 | ||||
|             print("\n\nJumping to bootloader... "); | ||||
| #ifdef AUDIO_ENABLE | ||||
|             stop_all_notes(); | ||||
|             shutdown_user(); | ||||
| #else | ||||
|             wait_ms(1000); | ||||
| #endif | ||||
|             bootloader_jump();  // not return
 | ||||
|             reset_keyboard(); | ||||
|             break; | ||||
| 
 | ||||
|         // debug toggle
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 yulei
						yulei