mirror of
				https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
				synced 2025-11-04 06:51:03 +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
					
				@ -245,6 +245,9 @@ enum MultiPacketTypes {
 | 
				
			|||||||
	MULTI_TELEMETRY_DSM           = 4,
 | 
						MULTI_TELEMETRY_DSM           = 4,
 | 
				
			||||||
	MULTI_TELEMETRY_DSMBIND       = 5,
 | 
						MULTI_TELEMETRY_DSMBIND       = 5,
 | 
				
			||||||
	MULTI_TELEMETRY_AFHDS2A       = 6,
 | 
						MULTI_TELEMETRY_AFHDS2A       = 6,
 | 
				
			||||||
 | 
						MULTI_TELEMETRY_CONFIG        = 7,
 | 
				
			||||||
 | 
						MULTI_TELEMETRY_SYNC          = 8,
 | 
				
			||||||
 | 
						MULTI_TELEMETRY_SPORT_POLLING = 9,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Macros
 | 
					// Macros
 | 
				
			||||||
 | 
				
			|||||||
@ -597,7 +597,9 @@ void pollSport()
 | 
				
			|||||||
	}		
 | 
						}		
 | 
				
			||||||
	SportIndexPolling = pindex ;
 | 
						SportIndexPolling = pindex ;
 | 
				
			||||||
	RxIndex = 0;
 | 
						RxIndex = 0;
 | 
				
			||||||
	Serial_write(TxData[0]);
 | 
					#ifdef MULTI_TELEMETRY
 | 
				
			||||||
 | 
						multi_send_header(MULTI_TELEMETRY_SPORT_POLLING, 1);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	Serial_write(TxData[1]);
 | 
						Serial_write(TxData[1]);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user