Skip to content

Commit

Permalink
Remove ConnectToSerial
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Apr 16, 2014
1 parent 7969fbc commit ef8d417
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions utils.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package gobot

import (
"github.com/tarm/goserial"
"io"
"math"
"math/rand"
"reflect"
Expand Down Expand Up @@ -47,15 +45,6 @@ func Rand(max int) int {
return rand.Intn(max)
}

func ConnectToSerial(port string, baud int) io.ReadWriteCloser {
c := &serial.Config{Name: port, Baud: baud}
s, err := serial.OpenPort(c)
if err != nil {
panic(err)
}
return s
}

func Call(thing interface{}, method string, params ...interface{}) []reflect.Value {
in := make([]reflect.Value, len(params))
for k, param := range params {
Expand Down

0 comments on commit ef8d417

Please sign in to comment.