From 851d6436a7e0bada26b38e791f0654728f1f467d Mon Sep 17 00:00:00 2001 From: jonas Date: Tue, 1 Aug 2023 16:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Di2c=E9=80=9A=E8=AE=AF?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=97=B6=E7=9A=84=E8=BF=94=E5=9B=9E=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/i2c/i2c_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/drivers/i2c/i2c_core.c b/components/drivers/i2c/i2c_core.c index 39147be..ad4cb44 100644 --- a/components/drivers/i2c/i2c_core.c +++ b/components/drivers/i2c/i2c_core.c @@ -78,7 +78,7 @@ rt_size_t rt_i2c_transfer(struct rt_i2c_bus_device *bus, { LOG_E("I2C bus operation not supported"); - return 0; + return -RT_EIO; } } @@ -98,7 +98,7 @@ rt_err_t rt_i2c_control(struct rt_i2c_bus_device *bus, { LOG_E("I2C bus operation not supported"); - return 0; + return -RT_EIO; } }