Skip to content

Commit cd888eb

Browse files
committed
bugfix: add pointer receiver to SPI3w
1 parent 0da4368 commit cd888eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rp2-pio/piolib/spi3w.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func NewSPI3w(sm pio.StateMachine, dio, clk machine.Pin, baud uint32) (*SPI3w, e
8888
return spiw, nil
8989
}
9090

91-
func (spi SPI3w) CmdWrite(cmd uint32, w []uint32) (err error) {
91+
func (spi *SPI3w) CmdWrite(cmd uint32, w []uint32) (err error) {
9292
writeBits := (1+len(w))*32 - 1
9393
var readBits uint32
9494
if spi.statusEn {

0 commit comments

Comments
 (0)