P1sec / pycrate

A Python library to ease the development of encoders and decoders for various protocols and file formats; contains ASN.1 and CSN.1 compilers.
GNU Lesser General Public License v2.1
381 stars 132 forks source link

fix: handle decode of _FreqListRange for Range512,256,128 #163

Closed jewalt closed 2 years ago

jewalt commented 2 years ago

Since Range512, Range256, and Range128 are all _freqListRange and have the same basic decode operation, they are decoded the same, but Range256 and Range128 add the decoded ARFCNs to the origin ARFCN mod 1024. Range512 does not add to the original ARFCN.

p1-bmu commented 2 years ago

Thanks for the PR !