aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src
diff options
context:
space:
mode:
authorElias Hanelt <[email protected]>2025-12-01 14:51:19 -0800
committerElias Hanelt <[email protected]>2025-12-01 14:51:19 -0800
commitf776a10678805b8bdb5a7c675fb8e31a57e8abc0 (patch)
tree8398ec9b4e3b131113ace495bf5cc92f9af539ed /embassy-stm32/src
parentd2ab38e3f7f0638e2fc4c6cee1ab3083986784df (diff)
remove i2c changes from pr
Diffstat (limited to 'embassy-stm32/src')
-rw-r--r--embassy-stm32/src/i2c/v2.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs
index 6b213484c..b2ba94e21 100644
--- a/embassy-stm32/src/i2c/v2.rs
+++ b/embassy-stm32/src/i2c/v2.rs
@@ -1600,8 +1600,7 @@ impl<'d, M: Mode> I2c<'d, M, MultiMaster> {
1600 for byte in chunk { 1600 for byte in chunk {
1601 // Wait until we have received something 1601 // Wait until we have received something
1602 match self.wait_rxne(timeout) { 1602 match self.wait_rxne(timeout) {
1603 Ok(ReceiveResult::StopReceived) => {} 1603 Ok(ReceiveResult::StopReceived) | Ok(ReceiveResult::NewStart) => {
1604 Ok(ReceiveResult::NewStart) => {
1605 trace!("--- Slave RX transmission end (early)"); 1604 trace!("--- Slave RX transmission end (early)");
1606 return Ok(total_len - remaining_len); // Return N bytes read 1605 return Ok(total_len - remaining_len); // Return N bytes read
1607 } 1606 }