Skip to content

Commit

Permalink
ran go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
amken3d committed Dec 12, 2024
1 parent 09ac2c4 commit 55290a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion tmc5160/SPIcomm.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func spiTransfer40(spi *machine.SPI, register uint8, txData uint32) (uint32, err
if err != nil {
return 0, err
}

// Combine the received bytes into a 32-bit response, ignore the address byte
rxData := uint32(rx[1])<<24 | uint32(rx[2])<<16 | uint32(rx[3])<<8 | uint32(rx[4])

Expand Down
1 change: 0 additions & 1 deletion tmc5160/tmc5160.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ func (driver *Driver) Begin(powerParams PowerStageParameters, motorParams MotorP
return false
}


// Dump_TMC reads multiple registers from the Driver and logs their values with their names.
func (driver *Driver) Dump_TMC() error {
registers := []uint8{
Expand Down

0 comments on commit 55290a1

Please sign in to comment.