mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-04 06:57:48 +00:00
sx126x driver: fix in SetBandwidth function
This commit is contained in:
committed by
Ron Evans
parent
78cc1afe46
commit
58cb44f3f6
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user