remove debugs, go fmt

This commit is contained in:
Olivier Fauchon
2023-01-30 23:49:20 +01:00
parent e74b01f973
commit dc18724d17
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -343,10 +343,8 @@ func lw(setting string) error {
if param == "NET" {
if val == "ON" {
lorawan.SetPublicNetwork(true)
println("SET PUBLIC NET")
} else {
lorawan.SetPublicNetwork(false)
println("SET PRIVATE NET")
}
}
}
+1
View File
@@ -449,6 +449,7 @@ func (d *Device) Rx(timeoutMs uint32) ([]uint8, error) {
// Single RX mode don't properly handle Timeouts on sx127x, so we use Continuous RX
// Go routine is a workaround to stop the Continuous RX and fire a timeout Event
d.SetOpMode(SX127X_OPMODE_RX)
go func() {
time.Sleep(time.Millisecond * time.Duration(timeoutMs))
d.SetOpMode(SX127X_OPMODE_STANDBY) //Go standby