Fix FSX-48 packets from points
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 35s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m51s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-10-19 14:57:33 +11:00
parent 4bbb82690c
commit bf5d5bcd74

View File

@ -55,6 +55,10 @@ final class FSC48 extends Packet
case 'capability': case 'capability':
return sprintf('%016b',Arr::get($this->header,'capword')); return sprintf('%016b',Arr::get($this->header,'capword'));
case 'fn':
// If the packet is from a point, then onet will be 0xffff
return ($x=Arr::get($this->header,'onet')) === 0xffff ? Arr::get($this->header,'auxnet') : $x;
default: default:
return parent::__get($key); return parent::__get($key);
} }