mirror of
				https://github.com/ShaYmez/P25Clients.git
				synced 2025-10-31 04:40:19 -04:00 
			
		
		
		
	Handle the new reflector control information cleanly.
This commit is contained in:
		
							parent
							
								
									e24909926d
								
							
						
					
					
						commit
						3baea4b6d4
					
				| @ -72,10 +72,16 @@ void CNetwork::clock(unsigned int ms) | ||||
| 
 | ||||
| 	CUtils::dump(1U, "P25 Network Data Received", buffer, length); | ||||
| 
 | ||||
| 	if (buffer[0U] == 0xF0U) {			// A poll
 | ||||
| 		write(buffer, length); | ||||
| 	} else if (buffer[0U] == 0xF1U) {	// An unlink
 | ||||
| 		// Nothing to do
 | ||||
| 	} else { | ||||
| 		unsigned char l = length; | ||||
| 		m_buffer.addData(&l, 1U); | ||||
| 
 | ||||
| 		m_buffer.addData(buffer, length); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| unsigned int CNetwork::read(unsigned char* data) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user