forked from mirrors/qmk_userspace
		
	Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
		
				commit
				
					
						3b04425f1a
					
				
			
		
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
					@ -934,6 +934,17 @@ static void send_extra(uint8_t report_id, uint16_t data) {
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (usbGetTransmitStatusI(&USB_DRIVER, SHARED_IN_EPNUM)) {
 | 
				
			||||||
 | 
					        /* Need to either suspend, or loop and call unlock/lock during
 | 
				
			||||||
 | 
					         * every iteration - otherwise the system will remain locked,
 | 
				
			||||||
 | 
					         * no interrupts served, so USB not going through as well.
 | 
				
			||||||
 | 
					         * Note: for suspend, need USB_USE_WAIT == TRUE in halconf.h */
 | 
				
			||||||
 | 
					        if (osalThreadSuspendTimeoutS(&(&USB_DRIVER)->epc[SHARED_IN_EPNUM]->in_state->thread, TIME_MS2I(10)) == MSG_TIMEOUT) {
 | 
				
			||||||
 | 
					            osalSysUnlock();
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    static report_extra_t report;
 | 
					    static report_extra_t report;
 | 
				
			||||||
    report = (report_extra_t){.report_id = report_id, .usage = data};
 | 
					    report = (report_extra_t){.report_id = report_id, .usage = data};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue