forked from mirrors/qmk_userspace
		
	Fixed macro doesn't work correctly with NKRO
This commit is contained in:
		
					parent
					
						
							
								8e390f92a2
							
						
					
				
			
			
				commit
				
					
						0c05eef6cd
					
				
			
		
					 2 changed files with 0 additions and 6 deletions
				
			
		| 
						 | 
					@ -362,13 +362,10 @@ void wireless_send_nkro(report_nkro_t *report) {
 | 
				
			||||||
    if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
 | 
					    if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
 | 
				
			||||||
        if (wireless_transport.send_nkro) {
 | 
					        if (wireless_transport.send_nkro) {
 | 
				
			||||||
#ifndef DISABLE_REPORT_BUFFER
 | 
					#ifndef DISABLE_REPORT_BUFFER
 | 
				
			||||||
 | 
					 | 
				
			||||||
            report_buffer_t report_buffer;
 | 
					            report_buffer_t report_buffer;
 | 
				
			||||||
            report_buffer.type = REPORT_TYPE_NKRO;
 | 
					            report_buffer.type = REPORT_TYPE_NKRO;
 | 
				
			||||||
            memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
 | 
					            memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
 | 
				
			||||||
            report_buffer_enqueue(&report_buffer);
 | 
					            report_buffer_enqueue(&report_buffer);
 | 
				
			||||||
 | 
					 | 
				
			||||||
            wireless_transport.send_nkro(&report->mods);
 | 
					 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
            wireless_transport.send_nkro(&report->mods);
 | 
					            wireless_transport.send_nkro(&report->mods);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -374,13 +374,10 @@ void wireless_send_nkro(report_nkro_t *report) {
 | 
				
			||||||
    if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
 | 
					    if (wireless_state == WT_CONNECTED || (wireless_state == WT_PARING && pincodeEntry)) {
 | 
				
			||||||
        if (wireless_transport.send_nkro) {
 | 
					        if (wireless_transport.send_nkro) {
 | 
				
			||||||
#ifndef DISABLE_REPORT_BUFFER
 | 
					#ifndef DISABLE_REPORT_BUFFER
 | 
				
			||||||
 | 
					 | 
				
			||||||
            report_buffer_t report_buffer;
 | 
					            report_buffer_t report_buffer;
 | 
				
			||||||
            report_buffer.type = REPORT_TYPE_NKRO;
 | 
					            report_buffer.type = REPORT_TYPE_NKRO;
 | 
				
			||||||
            memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
 | 
					            memcpy(&report_buffer.nkro, report, sizeof(report_nkro_t));
 | 
				
			||||||
            report_buffer_enqueue(&report_buffer);
 | 
					            report_buffer_enqueue(&report_buffer);
 | 
				
			||||||
 | 
					 | 
				
			||||||
            wireless_transport.send_nkro(&report->mods);
 | 
					 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
            wireless_transport.send_nkro(&report->mods);
 | 
					            wireless_transport.send_nkro(&report->mods);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue