Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknus committed Oct 11, 2023
1 parent dead59a commit 601dff4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ impl<SPI, CS, EN, E> Tmc5160<SPI, CS, EN>

/// clear G_STAT register
pub fn clear_g_stat(&mut self) -> Result<DataPacket, Error<E>> {
// let mut value = 0b111_u32.to_be_bytes();
let mut value = 0b0_u32.to_be_bytes();
let mut value = 0b111_u32.to_le_bytes();
self.write_register(Registers::GCONF, &mut value)
}

Expand Down

0 comments on commit 601dff4

Please sign in to comment.