Skip to content

Commit a8702b0

Browse files
committed
Rename fake_rxinfo_time to fake_rx_time.
1 parent c99f32a commit a8702b0

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

cmd/lora-gateway-bridge/cmd/configfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type="{{ .Backend.Type }}"
4747
#
4848
# Fake the RX time when the gateway does not have GPS, in which case
4949
# the time would otherwise be unset.
50-
fake_rxinfo_time={{ .Backend.SemtechUDP.FakeRxInfoTime }}
50+
fake_rx_time={{ .Backend.SemtechUDP.FakeRxTime }}
5151
5252
# # Managed packet-forwarder configuration.
5353
# #

docs/content/install/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ type="semtech_udp"
9999
#
100100
# Fake the RX time when the gateway does not have GPS, in which case
101101
# the time would otherwise be unset.
102-
fake_rxinfo_time=false
102+
fake_rx_time=false
103103

104104
# # Managed packet-forwarder configuration.
105105
# #

internal/backend/semtechudp/backend.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type Backend struct {
4545
conn *net.UDPConn
4646
closed bool
4747
gateways gateways
48-
fakeRxInfoTime bool
48+
fakeRxTime bool
4949
configurations []pfConfiguration
5050
}
5151

@@ -73,7 +73,7 @@ func NewBackend(conf config.Config) (*Backend, error) {
7373
connectChan: make(chan lorawan.EUI64),
7474
disconnectChan: make(chan lorawan.EUI64),
7575
},
76-
fakeRxInfoTime: conf.Backend.SemtechUDP.FakeRxInfoTime,
76+
fakeRxTime: conf.Backend.SemtechUDP.FakeRxTime,
7777
}
7878

7979
for _, pfConf := range conf.Backend.SemtechUDP.Configuration {
@@ -457,7 +457,7 @@ func (b *Backend) handlePushData(up udpPacket) error {
457457
}
458458

459459
// uplink frames
460-
uplinkFrames, err := p.GetUplinkFrames(b.fakeRxInfoTime)
460+
uplinkFrames, err := p.GetUplinkFrames(b.fakeRxTime)
461461
if err != nil {
462462
return errors.Wrap(err, "get uplink frames error")
463463
}

internal/config/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ type Config struct {
1212
Type string `mapstructure:"type"`
1313

1414
SemtechUDP struct {
15-
UDPBind string `mapstructure:"udp_bind"`
16-
SkipCRCCheck bool `mapstructure:"skip_crc_check"`
17-
FakeRxInfoTime bool `mapstructure:"fake_rxinfo_time"`
18-
Configuration []struct {
15+
UDPBind string `mapstructure:"udp_bind"`
16+
SkipCRCCheck bool `mapstructure:"skip_crc_check"`
17+
FakeRxTime bool `mapstructure:"fake_rx_time"`
18+
Configuration []struct {
1919
GatewayID string `mapstructure:"gateway_id"`
2020
BaseFile string `mapstructure:"base_file"`
2121
OutputFile string `mapstructure:"output_file"`

0 commit comments

Comments
 (0)