Use keyboard config for nkro (#7)
* removing nkro references - wip * changed NKRO to be defined by keymap_config
This commit is contained in:
		
							parent
							
								
									f0388a5b13
								
							
						
					
					
						commit
						558f3ec1eb
					
				
					 17 changed files with 131 additions and 101 deletions
				
			
		| 
						 | 
				
			
			@ -52,6 +52,13 @@
 | 
			
		|||
#include "descriptor.h"
 | 
			
		||||
#include "lufa.h"
 | 
			
		||||
 | 
			
		||||
#ifdef NKRO_ENABLE
 | 
			
		||||
  #include "keycode_config.h"
 | 
			
		||||
 | 
			
		||||
  extern keymap_config_t keymap_config;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#ifdef AUDIO_ENABLE
 | 
			
		||||
    #include <audio.h>
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -502,7 +509,7 @@ static void send_keyboard(report_keyboard_t *report)
 | 
			
		|||
 | 
			
		||||
    /* Select the Keyboard Report Endpoint */
 | 
			
		||||
#ifdef NKRO_ENABLE
 | 
			
		||||
    if (keyboard_protocol && keyboard_nkro) {
 | 
			
		||||
    if (keyboard_protocol && keymap_config.nkro) {
 | 
			
		||||
        /* Report protocol - NKRO */
 | 
			
		||||
        Endpoint_SelectEndpoint(NKRO_IN_EPNUM);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue