SeRoSystems / lib1090

Java decoding library for Mode S, ADS-B, TIS-B and ADS-R
GNU General Public License v3.0
16 stars 2 forks source link

Class SurfacePositionV2Msg wrong byte casting in getHorizontalContainmentRadiusLimit() #23

Closed lvalkenbergECTRL closed 3 months ago

lvalkenbergECTRL commented 4 months ago

In the class SurfacePositionV2Msg line 84 there is a byte casting in the return statement:

case 7: return (byte) (hasNICSupplementA() ? 75 : 185.2);

Because of this, if NIC A if false the return value will be -71 instead of 185.2

fixje commented 4 months ago

Thank you very much for reporting! We'll fix it ASAP

fixje commented 3 months ago

fixed in 36546140180bff667fe8835768f5599f2245c271 which is now released with v4.1.1