From f20d1759d3c4d11272e665d4e6d2493da7d3e21b Mon Sep 17 00:00:00 2001 From: deadprogram Date: Tue, 17 Oct 2023 17:49:59 +0200 Subject: [PATCH] examples/lora/lorawan: add missing functions for simulated interface Signed-off-by: deadprogram --- examples/lora/lorawan/common/sim.go | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/examples/lora/lorawan/common/sim.go b/examples/lora/lorawan/common/sim.go index 14c919f..7f70f5c 100644 --- a/examples/lora/lorawan/common/sim.go +++ b/examples/lora/lorawan/common/sim.go @@ -23,13 +23,18 @@ func (sr *SimLoraRadio) Rx(timeoutMs uint32) ([]uint8, error) { return nil, nil } -func (sr *SimLoraRadio) SetFrequency(freq uint32) {} -func (sr *SimLoraRadio) SetIqMode(mode uint8) {} -func (sr *SimLoraRadio) SetCodingRate(cr uint8) {} -func (sr *SimLoraRadio) SetBandwidth(bw uint8) {} -func (sr *SimLoraRadio) SetCrc(enable bool) {} -func (sr *SimLoraRadio) SetSpreadingFactor(sf uint8) {} -func (sr *SimLoraRadio) LoraConfig(cnf lora.Config) {} +func (sr *SimLoraRadio) SetFrequency(freq uint32) {} +func (sr *SimLoraRadio) SetIqMode(mode uint8) {} +func (sr *SimLoraRadio) SetCodingRate(cr uint8) {} +func (sr *SimLoraRadio) SetBandwidth(bw uint8) {} +func (sr *SimLoraRadio) SetCrc(enable bool) {} +func (sr *SimLoraRadio) SetSpreadingFactor(sf uint8) {} +func (sr *SimLoraRadio) SetHeaderType(headerType uint8) {} +func (sr *SimLoraRadio) SetPreambleLength(pLen uint16) {} +func (sr *SimLoraRadio) SetPublicNetwork(enabled bool) {} +func (sr *SimLoraRadio) SetSyncWord(syncWord uint16) {} +func (sr *SimLoraRadio) SetTxPower(txPower int8) {} +func (sr *SimLoraRadio) LoraConfig(cnf lora.Config) {} func FirmwareVersion() string { return "simulator " + CurrentVersion()