revert back to int64
This commit is contained in:
parent
d5d6283cec
commit
180a7eebf8
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue