mirror of
				https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
				synced 2025-11-04 06:45:43 +00:00 
			
		
		
		
	Fix Sport polling bytes send without multi header and introduce sport polling header for multi (#126)
This commit is contained in:
		
							parent
							
								
									93e277bb0f
								
							
						
					
					
						commit
						64fb90960b
					
				@ -239,12 +239,15 @@ struct PPM_Parameters
 | 
			
		||||
// Telemetry
 | 
			
		||||
 | 
			
		||||
enum MultiPacketTypes {
 | 
			
		||||
	MULTI_TELEMETRY_STATUS  = 1,
 | 
			
		||||
	MULTI_TELEMETRY_SPORT   = 2,
 | 
			
		||||
	MULTI_TELEMETRY_HUB     = 3,
 | 
			
		||||
	MULTI_TELEMETRY_DSM     = 4,
 | 
			
		||||
	MULTI_TELEMETRY_DSMBIND = 5,
 | 
			
		||||
	MULTI_TELEMETRY_AFHDS2A = 6,
 | 
			
		||||
	MULTI_TELEMETRY_STATUS        = 1,
 | 
			
		||||
	MULTI_TELEMETRY_SPORT         = 2,
 | 
			
		||||
	MULTI_TELEMETRY_HUB           = 3,
 | 
			
		||||
	MULTI_TELEMETRY_DSM           = 4,
 | 
			
		||||
	MULTI_TELEMETRY_DSMBIND       = 5,
 | 
			
		||||
	MULTI_TELEMETRY_AFHDS2A       = 6,
 | 
			
		||||
	MULTI_TELEMETRY_CONFIG        = 7,
 | 
			
		||||
	MULTI_TELEMETRY_SYNC          = 8,
 | 
			
		||||
	MULTI_TELEMETRY_SPORT_POLLING = 9,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// Macros
 | 
			
		||||
 | 
			
		||||
@ -597,7 +597,9 @@ void pollSport()
 | 
			
		||||
	}		
 | 
			
		||||
	SportIndexPolling = pindex ;
 | 
			
		||||
	RxIndex = 0;
 | 
			
		||||
	Serial_write(TxData[0]);
 | 
			
		||||
#ifdef MULTI_TELEMETRY
 | 
			
		||||
	multi_send_header(MULTI_TELEMETRY_SPORT_POLLING, 1);
 | 
			
		||||
#endif
 | 
			
		||||
	Serial_write(TxData[1]);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user