sx126x driver: fix in SetBandwidth function

This commit is contained in:
Olivier Fauchon
2023-01-29 10:22:12 +01:00
committed by Ron Evans
parent 78cc1afe46
commit 58cb44f3f6
+1 -1
View File
@@ -545,7 +545,7 @@ func (d *Device) SetCodingRate(cr uint8) {
// SetBandwidth() sets current Lora Bandwidth
// NB: Change will be applied at next RX / TX
func (d *Device) SetBandwidth(bw uint8) {
d.loraConf.Cr = bw
d.loraConf.Bw = bw
}
// SetCrc() sets current CRC mode (ON/OFF)