From d18c77c0ebed09b7ecb9e0a4cb74814fd099c532 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 25 Jun 2021 16:23:50 +0800 Subject: [PATCH] i2c: fix error messages --- libboard_zynq/src/i2c/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libboard_zynq/src/i2c/mod.rs b/libboard_zynq/src/i2c/mod.rs index 8290903..b75baa1 100644 --- a/libboard_zynq/src/i2c/mod.rs +++ b/libboard_zynq/src/i2c/mod.rs @@ -133,7 +133,7 @@ impl I2c { return Err("SDA is stuck low and doesn't get unstuck"); } if !self.scl_i() { - return Err("SCL is stuck low and doesn't get unstuck"); + return Err("SCL is stuck low"); } // postcondition: SCL and SDA high Ok(()) @@ -142,7 +142,7 @@ impl I2c { pub fn start(&mut self) -> Result<(), &'static str> { // precondition: SCL and SDA high if !self.scl_i() { - return Err("SCL is stuck low and doesn't get unstuck"); + return Err("SCL is stuck low"); } if !self.sda_i() { return Err("SDA arbitration lost");