Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 35 additions & 19 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ required = ["goa.design/goa/codegen/generator"]
name = "github.com/blang/semver"
version = "3.5.1"

[[constraint]]
branch = "master"
name = "github.com/facchinm/systray"

[[constraint]]
name = "github.com/gin-gonic/gin"
Expand Down Expand Up @@ -98,6 +95,10 @@ required = ["goa.design/goa/codegen/generator"]
branch = "master"
name = "golang.org/x/crypto"

[[override]]
branch = "master"
name = "github.com/lxn/walk"

[[constraint]]
branch = "v0"
name = "gopkg.in/inconshreveable/go-update.v0"
Expand Down
8 changes: 5 additions & 3 deletions serialport.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,12 @@ type SpPortMessageRaw struct {
func (p *serport) reader() {

//var buf bytes.Buffer
ch := make([]byte, 1024)
timeCheckOpen := time.Now()
var buffered_ch bytes.Buffer

for {

ch := make([]byte, 1024)

n, err := p.portIo.Read(ch)

//if we detect that port is closing, break out o this for{} loop.
Expand All @@ -128,9 +127,12 @@ func (p *serport) reader() {
for i, w := 0, 0; i < n; i += w {
runeValue, width := utf8.DecodeRune(ch[i:n])
if runeValue == utf8.RuneError {
buffered_ch.Write(ch[i:n])
buffered_ch.Write(append(ch[i:n]))
break
}
if i == n {
buffered_ch.Reset()
}
data += string(runeValue)
w = width
}
Expand Down
6 changes: 3 additions & 3 deletions trayicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"runtime"

"github.com/arduino/arduino-create-agent/icon"
"github.com/facchinm/systray"
"github.com/getlantern/systray"
"github.com/go-ini/ini"
"github.com/kardianos/osext"
log "github.com/sirupsen/logrus"
Expand All @@ -47,9 +47,9 @@ import (
func setupSysTray() {
runtime.LockOSThread()
if *hibernate == true {
systray.Run(setupSysTrayHibernate)
systray.Run(setupSysTrayHibernate,nil)
} else {
systray.Run(setupSysTrayReal)
systray.Run(setupSysTrayReal,nil)
}
}

Expand Down
57 changes: 0 additions & 57 deletions vendor/github.com/facchinm/systray/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/github.com/facchinm/systray/embeddll.bash

This file was deleted.

19 changes: 0 additions & 19 deletions vendor/github.com/facchinm/systray/signdll.bash

This file was deleted.

9 changes: 0 additions & 9 deletions vendor/github.com/facchinm/systray/systray.h

This file was deleted.

71 changes: 0 additions & 71 deletions vendor/github.com/facchinm/systray/systray_nonwindows.go

This file was deleted.

Loading