Skip to content

Commit 89699c9

Browse files
committed
Version naming fix
Former-commit-id: 13ee1d81fc78147715409884d0d19d81fe5d0ae1 [formerly 0865a589311355357977709624b5850bf0fb887b] Former-commit-id: 0bdc25a9568a8c467c899fe15c9a662079ac3ec2
1 parent 729bbec commit 89699c9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (h *hub) run() {
3737
case c := <-h.register:
3838
h.connections[c] = true
3939
// send supported commands
40-
c.send <- []byte("{\"Version\" : \"" + VERSION + "\"} ")
40+
c.send <- []byte("{\"Version\" : \"" + version + "\"} ")
4141
c.send <- []byte("{\"Commands\" : [\"list\", \"open [portName] [baud]\", \"send [portName] [cmd]\", \"close [portName]\"]} ")
4242
case c := <-h.unregister:
4343
delete(h.connections, c)

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
var (
16-
VERSION = "1.2"
16+
version = "1.2"
1717
addr = flag.String("addr", ":8989", "http service address")
1818
assets = flag.String("assets", defaultAssetPath(), "path to assets")
1919
//homeTempl *template.Template
@@ -40,7 +40,7 @@ func main() {
4040
//getList()
4141
flag.Parse()
4242
f := flag.Lookup("addr")
43-
log.Println("Version:" + VERSION)
43+
log.Println("Version:" + version)
4444
log.Print("Started server and websocket on localhost" + f.Value.String())
4545
//homeTempl = template.Must(template.ParseFiles(filepath.Join(*assets, "home.html")))
4646

seriallist_windows.go.REMOVED.git-id

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

0 commit comments

Comments
 (0)