diff --git a/sx126x/sx126x.go b/sx126x/sx126x.go index 85e4625..1ace7f2 100644 --- a/sx126x/sx126x.go +++ b/sx126x/sx126x.go @@ -523,7 +523,7 @@ func (d *Device) ExecGetCommand(cmd uint8, size uint8) []uint8 { // SetFrequency() Sets current Lora Frequency // NB: Change will be applied at next RX / TX func (d *Device) SetFrequency(freq uint32) { - d.loraConf.Freq = d.loraConf.Freq + d.loraConf.Freq = freq } // SetIqMode() defines the current IQ Mode (Standard/Inverted)