pothosware / SoapyAirspy

Soapy SDR plugin for the Airspy
https://github.com/pothosware/SoapyAirspy/wiki
MIT License
25 stars 13 forks source link

getNativeStreamFormat() gives wrong fullScale value #16

Closed szpajder closed 6 years ago

szpajder commented 6 years ago

SoapyAirspy::getNativeStreamFormat returns 65536 as fullScale. But the native format is signed short, so it shall in fact be 32767, right?

65536 (or rather 65535) would be more appropriate for unsigned short.

guruofquality commented 6 years ago

Yea, thats probably the case, it should be for the signed int16 scaling. Fixed on master. Thanks!