No. Checking range is not necessary as self.spi_read() returns just value from a byte.
The idea is to cast the byte to signed integer.
For example: value 255 shall be interpreted as -1/4 = -0.25.
Currently we get 255/4 = 63.75 which is incorrect.
Please refer to page 122 of SX1276/77/78/79 Data Sheet:
"Estimation of SNR on last packet received. In two’s compliment format mutiplied by 4."
No. Checking range is not necessary as
self.spi_read()
returns just value from a byte. The idea is to cast the byte to signed integer. For example: value 255 shall be interpreted as -1/4 = -0.25. Currently we get 255/4 = 63.75 which is incorrect. Please refer to page 122 of SX1276/77/78/79 Data Sheet: "Estimation of SNR on last packet received. In two’s compliment format mutiplied by 4."