mirror of
				https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
				synced 2025-10-31 03:14:16 +00:00 
			
		
		
		
	Fix: Hubsan telemetry packet check function
This commit is contained in:
		
							parent
							
								
									9d3b1d75d1
								
							
						
					
					
						commit
						b9e45c4bb0
					
				| @ -181,11 +181,10 @@ static void __attribute__((unused)) hubsan_build_packet() | ||||
| } | ||||
| 
 | ||||
| #if defined(TELEMETRY) | ||||
| static __attribute__((unused)) uint8_t hubsan_check_integrity()  | ||||
| static uint8_t __attribute__((unused)) hubsan_check_integrity()  | ||||
| { | ||||
|     if( (packet[0]&0xFE) != 0xE0 ) | ||||
| 		return 0; | ||||
| 	return 1; | ||||
| 	uint8_t sum = 0; | ||||
|     for(uint8_t i = 0; i < 15; i++) | ||||
|         sum += packet[i]; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user