Fix edge case in transmission handling
This commit is contained in:
		
							parent
							
								
									afce928149
								
							
						
					
					
						commit
						1b443c5971
					
				| @ -538,7 +538,9 @@ void transmit(RadioInterface* radio, uint16_t size) { | |||||||
| 
 | 
 | ||||||
|         written++; |         written++; | ||||||
| 
 | 
 | ||||||
|         if (written == 255) { |         // Only start a new packet if this is a split packet and it has
 | ||||||
|  |         // exceeded the length of a single packet
 | ||||||
|  |         if (written == 255 && header & 0x0F) { | ||||||
|           radio->endPacket(); radio->addAirtime(written); |           radio->endPacket(); radio->addAirtime(written); | ||||||
|           radio->beginPacket(); |           radio->beginPacket(); | ||||||
|           radio->write(header); |           radio->write(header); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user