Skip to content

Commit fb50c02

Browse files
committed
Got RTS On to work to TinyG is supported.
Also removed a lot of debug statements in log. Former-commit-id: 3156c0965f0179c8fec9660adb3b2f3f146effb6
1 parent b8ff790 commit fb50c02

6 files changed

+13
-9
lines changed

hub.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (h *hub) run() {
4141
close(c.send)
4242
case m := <-h.broadcast:
4343
log.Print("Got a broadcast")
44-
log.Print(m)
44+
log.Print(string(m))
4545
//log.Print(h.broadcast)
4646
checkCmd(m)
4747
log.Print("-----")
@@ -60,7 +60,7 @@ func (h *hub) run() {
6060
}
6161
case m := <-h.broadcastSys:
6262
log.Print("Got a system broadcast")
63-
log.Print(m)
63+
log.Print(string(m))
6464
log.Print("-----")
6565

6666
for c := range h.connections {
@@ -80,9 +80,9 @@ func (h *hub) run() {
8080
}
8181

8282
func checkCmd(m []byte) {
83-
log.Print("Inside checkCmd")
83+
//log.Print("Inside checkCmd")
8484
s := string(m[:])
85-
log.Print(s)
85+
//log.Print(s)
8686

8787
sl := strings.ToLower(s)
8888

@@ -119,5 +119,5 @@ func checkCmd(m []byte) {
119119
//go getListViaWmiPnpEntity()
120120
}
121121

122-
log.Print("Done with checkCmd")
122+
//log.Print("Done with checkCmd")
123123
}

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ func homeHandler(c http.ResponseWriter, req *http.Request) {
2929
}
3030

3131
func main() {
32+
33+
// setup logging
34+
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
35+
3236
//getList()
3337
flag.Parse()
3438
f := flag.Lookup("addr")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4ebf31b33457a3a7c1b8c02880937475295b9a56
1+
5530fd5f834dde8d7f52e92e5a38ebfe310bc281

serial.go.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10f66c6b4ec2cf04de722709f95f90b8a65c15a0
1+
bad56e8c64066d9312b1153bb00d230b7b518289

seriallist_windows.go.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d5e327a410c6763d6f0302cfe499d2f0fd4257f1
1+
9cc9dab514792983d0bc3d308e088332eb61a923

serialport.go.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4a782d42e7c8be303370b6c6804d4f60af89184b
1+
2da448fed17759a60907dcd73cc041f475f43f07

0 commit comments

Comments
 (0)