Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknus committed Oct 11, 2023
1 parent 101199c commit 5bfe6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl<SPI, CS, EN, E> Tmc5160<SPI, CS, EN>

self.cs.set_high().ok();

Ok(DataPacket { status: SpiStatus::from_bytes([response[0]]), data: u32::from_be_bytes(*val), debug: ret_val })
Ok(DataPacket { status: SpiStatus::from_bytes([response[0]]), data: 0, debug: ret_val })
}

/// enable the motor if the EN pin was specified
Expand Down

0 comments on commit 5bfe6ec

Please sign in to comment.