mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
650 stars 212 forks source link

Value written to RegLna wrong for SX1276 #320

Closed terrillmoore closed 5 years ago

terrillmoore commented 5 years ago

The value written to RegLna is LNA_RX_GAIN. This is defined in radio.c:

https://github.com/mcci-catena/arduino-lmic/blob/7eed9b3b9ea582c96036d0c7b9760f98835c567f/src/lmic/radio.c#L298-L304

The problem is that the datasheet (and Semtech's reference code) wants 0x23 for the SX1276. 0x21 is an unspecified value, according to the datasheet.

terrillmoore commented 5 years ago

This is is a duplicate of #261 -- closing.