From 5bfe6ecba2b320d09220733f35f7d5b0eea26a39 Mon Sep 17 00:00:00 2001 From: hacknus Date: Wed, 11 Oct 2023 14:36:29 +0200 Subject: [PATCH] reformat --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ee35e84..d5b8628 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -213,7 +213,7 @@ impl Tmc5160 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