revert back to int64

This commit is contained in:
Ulises Flynn 2018-06-25 09:58:32 -06:00
parent d5d6283cec
commit 180a7eebf8
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
package spi
import (
"periph.io/x/periph/conn/physic"
xspi "periph.io/x/periph/conn/spi"
xsysfs "periph.io/x/periph/host/sysfs"
)
@ -80,7 +79,7 @@ func GetSpiConnection(busNum, chipNum, mode, bits int, maxSpeed int64) (Connecti
if err != nil {
return nil, err
}
c, err := p.Connect(physic.Frequency(maxSpeed), xspi.Mode(mode), bits)
c, err := p.Connect(maxSpeed, xspi.Mode(mode), bits)
if err != nil {
return nil, err
}

View File

@ -216,7 +216,7 @@ func TestOffsetMotorEncoder(t *testing.T) {
func TestSetPWMDuty(t *testing.T) {
d := initTestDriver()
err := d.SetPWMDuty(AD_1_1, 80)
err := d.SetPWMDuty(AD_1_1_G, 80)
if err != nil {
t.Error(err)
}
@ -224,7 +224,7 @@ func TestSetPWMDuty(t *testing.T) {
func TestSetPWMfreq(t *testing.T) {
d := initTestDriver()
err := d.SetPWMFreq(AD_1_2, 100)
err := d.SetPWMFreq(AD_1_2_G, 100)
if err != nil {
t.Error(err)
}