Skip to content

Commit

Permalink
Move usb GPS to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
madwizard committed Apr 1, 2019
1 parent 313628f commit 887b0b6
Show file tree
Hide file tree
Showing 2 changed files with 182 additions and 3 deletions.
179 changes: 179 additions & 0 deletions .idea/workspace.xml

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

6 changes: 3 additions & 3 deletions gps.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package main
import (
"log"

"go.bug.st/serial.v1"
serial "go.bug.st/serial.v1"
)

func InitGPS(portDevice string) (*serial.Port, []byte) {
func InitGPS(portDevice string) (serial.Port, []byte) {

mode := &serial.Mode{
BaudRate: 115200,
Expand All @@ -28,5 +28,5 @@ func InitGPS(portDevice string) (*serial.Port, []byte) {

buff := make([]byte, 400)

return &port, &buff
return port, buff
}

0 comments on commit 887b0b6

Please sign in to comment.