Don't add one little change before pushing

pull/578/head
Eric Westphal 2016-07-13 20:49:07 -04:00
rodzic 7ee7a83a87
commit ddaf673006
4 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -13,8 +13,8 @@ all:
make xgen_gdl90
xgen_gdl90:
go get -t -d -v ./main ./test ./linux-mpu9150/mpu ./godump978 ./mpu6050 ./uatparse
go build $(BUILDINFO) -p 4 main/gen_gdl90.go main/traffic.go main/ry835ai.go main/network.go main/managementinterface.go main/sdr.go main/uibroadcast.go main/monotonic.go main/datalog.go main/equations.go
go get -t -d -v ./main ./test ./linux-mpu9150/mpu ./godump978 ./mpu ./uatparse
go build $(BUILDINFO) -p 4 main/gen_gdl90.go main/traffic.go main/ry83Xai.go main/network.go main/managementinterface.go main/sdr.go main/uibroadcast.go main/monotonic.go main/datalog.go main/equations.go
xdump1090:
git submodule update --init

Wyświetl plik

@ -27,7 +27,7 @@ import (
"os"
"os/exec"
"../mpu6050"
"../mpu"
)
const (
@ -1365,7 +1365,7 @@ func initBMP180() error {
//TODO westphae: set up myMPU as MPU6050 or MPU9250, depending on which exists
func initMPU() error {
myMPU = mpu.NewMPU6050() //TODO: error checking.
myMPU, _ = mpu.NewMPU6050() //TODO: error checking.
return nil
}

Wyświetl plik

@ -40,10 +40,10 @@ type MPU6050 struct {
}
// New returns a handle to a MPU6050 sensor.
func NewMPU6050() *MPU6050 {
func NewMPU6050() (*MPU6050, error) {
n := &MPU6050{poll: pollDelay}
n.startUp()
return n
return n, nil
}
func (d *MPU6050) startUp() error {

Wyświetl plik

@ -1,7 +1,7 @@
package main
import (
"../mpu6050"
"../mpu"
"fmt"
"net"
"time"