mirror of
				https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
				synced 2025-10-31 11:21:06 +00:00 
			
		
		
		
	RadioLink: few fixes
This commit is contained in:
		
							parent
							
								
									65186b4356
								
							
						
					
					
						commit
						ed019e954e
					
				| @ -19,7 +19,7 @@ | |||||||
| #define VERSION_MAJOR		1 | #define VERSION_MAJOR		1 | ||||||
| #define VERSION_MINOR		3 | #define VERSION_MINOR		3 | ||||||
| #define VERSION_REVISION	1 | #define VERSION_REVISION	1 | ||||||
| #define VERSION_PATCH_LEVEL	43 | #define VERSION_PATCH_LEVEL	44 | ||||||
| 
 | 
 | ||||||
| //******************
 | //******************
 | ||||||
| // Protocols
 | // Protocols
 | ||||||
|  | |||||||
| @ -73,7 +73,8 @@ static void __attribute__((unused)) RLINK_tune_freq() | |||||||
| 
 | 
 | ||||||
| static void __attribute__((unused)) RLINK_TIMING_RFSEND_packet() | static void __attribute__((unused)) RLINK_TIMING_RFSEND_packet() | ||||||
| { | { | ||||||
| 	uint32_t pseudo=0, bits = 0; | 	static uint32_t pseudo=0; | ||||||
|  | 	uint32_t bits = 0; | ||||||
| 	uint8_t bitsavailable = 0; | 	uint8_t bitsavailable = 0; | ||||||
| 	uint8_t idx = 6; | 	uint8_t idx = 6; | ||||||
| 
 | 
 | ||||||
| @ -117,7 +118,7 @@ static void __attribute__((unused)) RLINK_TIMING_RFSEND_packet() | |||||||
| 	 | 	 | ||||||
| 	// check
 | 	// check
 | ||||||
| 	uint8_t sum=0; | 	uint8_t sum=0; | ||||||
| 	for(uint8_t i=0;i<33;i++) | 	for(uint8_t i=1;i<33;i++) | ||||||
| 		sum+=packet[i]; | 		sum+=packet[i]; | ||||||
| 	packet[33]=sum; | 	packet[33]=sum; | ||||||
| 
 | 
 | ||||||
| @ -126,7 +127,12 @@ static void __attribute__((unused)) RLINK_TIMING_RFSEND_packet() | |||||||
| 	 | 	 | ||||||
| 	// packets type
 | 	// packets type
 | ||||||
| 	packet_count++; | 	packet_count++; | ||||||
| 	if(packet_count>6) packet_count=0; | 	if(packet_count>5) packet_count=0; | ||||||
|  | 
 | ||||||
|  | 	//debug("P:");
 | ||||||
|  | 	//for(uint8_t i=0;i<RLINK_TX_PACKET_LEN+1;i++)
 | ||||||
|  | 	//	debug(" 0x%02X",packet[i]);
 | ||||||
|  | 	//debugln("");
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #define RLINK_TIMING_PROTO	20000 | #define RLINK_TIMING_PROTO	20000 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user