From 49e7a6d6c89c262bed7fc5cac2051782dc48d4e2 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sun, 15 Jan 2023 23:10:31 +0100 Subject: [PATCH] sx126x: actually set the frequency when calling SetFrequency() Signed-off-by: deadprogram --- sx126x/sx126x.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)