mirror of
				https://github.com/brmlab/osmo-tetra.git
				synced 2025-10-31 23:43:58 +01:00 
			
		
		
		
	fixed warnings from compiler findings
- added missing header definition for tun_alloc - added missing switch cases -> fixed by TODO/FIXME comment
This commit is contained in:
		
							parent
							
								
									42dead06be
								
							
						
					
					
						commit
						dafde94bfe
					
				
					 5 changed files with 36 additions and 2 deletions
				
			
		|  | @ -314,6 +314,10 @@ void tetra_burst_rx_cb(const uint8_t *burst, unsigned int len, enum tetra_train_ | |||
| 	uint8_t ndbf_buf[2*NDB_BLK_BITS]; | ||||
| 
 | ||||
| 	switch (type) { | ||||
| 	case TETRA_TRAIN_EXT: | ||||
| 		// TODO: currently not handled!
 | ||||
| 		// FIXME
 | ||||
| 		break; | ||||
| 	case TETRA_TRAIN_SYNC: | ||||
| 		/* Split SB1, SB2 and Broadcast Block */ | ||||
| 		/* send three parts of the burst via TP-SAP into lower MAC */ | ||||
|  | @ -321,6 +325,10 @@ void tetra_burst_rx_cb(const uint8_t *burst, unsigned int len, enum tetra_train_ | |||
| 		tp_sap_udata_ind(TPSAP_T_BBK, burst+SB_BBK_OFFSET, SB_BBK_BITS, priv); | ||||
| 		tp_sap_udata_ind(TPSAP_T_SB2, burst+SB_BLK2_OFFSET, SB_BLK2_BITS, priv); | ||||
| 		break; | ||||
| 	case TETRA_TRAIN_NORM_3: | ||||
| 		// TODO: currently not handled!
 | ||||
| 		// FIXME
 | ||||
| 		break; | ||||
| 	case TETRA_TRAIN_NORM_2: | ||||
| 		/* re-combine the broadcast block */ | ||||
| 		memcpy(bbk_buf, burst+NDB_BBK1_OFFSET, NDB_BBK1_BITS); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 luckyhacky
						luckyhacky