From 4194beccd8a3f7273b9db7404dee7b0e586e2c0a Mon Sep 17 00:00:00 2001 From: ligenxxxx <59721724+ligenxxxx@users.noreply.github.com> Date: Tue, 6 Feb 2024 10:49:16 +0800 Subject: [PATCH] Update i2c.c --- src/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i2c.c b/src/i2c.c index f05e9e0..2f165e5 100644 --- a/src/i2c.c +++ b/src/i2c.c @@ -124,7 +124,7 @@ uint8_t I2C_Write8_Wait(uint16_t ms, uint8_t slave_addr, uint8_t reg_addr, uint8 uint8_t ret; ret = I2C_Write8(slave_addr, reg_addr, val); WAIT(ms + 2); - return + return ret; } uint8_t I2C_Write16(uint8_t slave_addr, uint16_t reg_addr, uint16_t val) {