mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-18 21:53:56 +00:00
sx126x: actually set the frequency when calling SetFrequency()
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
+1
-1
@@ -523,7 +523,7 @@ func (d *Device) ExecGetCommand(cmd uint8, size uint8) []uint8 {
|
|||||||
// SetFrequency() Sets current Lora Frequency
|
// SetFrequency() Sets current Lora Frequency
|
||||||
// NB: Change will be applied at next RX / TX
|
// NB: Change will be applied at next RX / TX
|
||||||
func (d *Device) SetFrequency(freq uint32) {
|
func (d *Device) SetFrequency(freq uint32) {
|
||||||
d.loraConf.Freq = d.loraConf.Freq
|
d.loraConf.Freq = freq
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetIqMode() defines the current IQ Mode (Standard/Inverted)
|
// SetIqMode() defines the current IQ Mode (Standard/Inverted)
|
||||||
|
|||||||
Reference in New Issue
Block a user