kopia lustrzana https://github.com/pjalocha/esp32-ogn-tracker
Prefix 0x08 is AddrType=2 for GxAircom
rodzic
6c77030821
commit
546dc06ce7
|
@ -44,7 +44,7 @@ class FANET_Packet
|
|||
|
||||
uint8_t getAddrType(void) const // address-type based on prefix
|
||||
{ uint8_t Pref=getAddrPref();
|
||||
if(Pref==0x11 || Pref==0x20 || Pref==0xDD || Pref==0xDE || Pref==0xDF) return 2;
|
||||
if(Pref==0x08 || Pref==0x11 || Pref==0x20 || Pref==0xDD || Pref==0xDE || Pref==0xDF) return 2;
|
||||
return 3; }
|
||||
|
||||
void setAddress(uint32_t Addr) { setAddrPref(Addr>>16); setAddrLow(Addr); }
|
||||
|
|
Ładowanie…
Reference in New Issue