merge record_log and delete some err

This commit is contained in:
fish 2019-06-24 09:39:14 +08:00
parent 9a94dddb26
commit f341b7c42a
3 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,7 @@ import (
_ "github.com/mattn/go-sqlite3"
"log"
"os"
"strconv"
// "strconv"
"time"
"sync"
)
@ -107,7 +107,7 @@ var today string
//var maledemoDevice Device
var nodeUpdateMap sync.Map
var logch = make(chan []byte)
// var logch = make(chan []byte)
//log channel
var logch = make(chan []byte)
@ -132,7 +132,7 @@ func init() {
check(err)
var device Device
// log.Println("slaveDevices:", conf.WIRELESSSLAVEDEVICES)
log.Println("slaveDevices:", conf.WIRELESSSLAVEDEVICES)
for _,v := range conf.LORANODES {
v.CURRENT_DATA = -1

View File

@ -105,7 +105,7 @@ func getConf() {
}
//距离有效判断time.
var reactTof = 1650time.
var reactTof = 1650
//数据防抖 进入时间
var extensionInTime = 6

View File

@ -10,7 +10,6 @@ import (
"sync"
"encoding/json"
"time"
"strconv"
"bytes"
)