Fix bug on decision to send 16 or 20 byte long packet

pull/30/head
Pawel Jalocha 2020-10-24 00:42:03 +01:00
rodzic a7592bc4e5
commit 833d9c0b8c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -495,7 +495,7 @@ extern "C"
if(PktData) // if there is a packet to transmit
{ OGN1_Packet *OGN = (OGN1_Packet *)PktData; OGN->Dewhiten();
uint8_t *TxPacket;
bool Short = !OGN->Header.NonPos && OGN->Header.AddrType==3 && OGN->Header.Address!=getUniqueAddress();
bool Short = !OGN->Header.NonPos && OGN->Header.AddrType==3 && OGN->Header.Address==(uint32_t)(getUniqueAddress()&0x00FFFFFF);
if(Short)
{ TxPktLen=WANdev.getDataPacket(&TxPacket, PktData+4, 16, 1, ((RX_Random>>16)&0xF)==0x8 ); }
else