Skip to content

Commit

Permalink
revert back to int64
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesflynn committed Jun 25, 2018
1 parent d5d6283 commit 180a7ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/spi/spi.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions platforms/dexter/gopigo3/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,15 @@ 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)
}
}

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)
}
Expand Down

0 comments on commit 180a7ee

Please sign in to comment.