From 34397d5111aa436c911bad6ce56022512f3ff121 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Tue, 24 Oct 2023 13:33:45 +0800 Subject: [PATCH] bugfix si2c library --- super_i2c/super_i2c.tbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/super_i2c/super_i2c.tbs b/super_i2c/super_i2c.tbs index 5e36afb..e8eb4a1 100644 --- a/super_i2c/super_i2c.tbs +++ b/super_i2c/super_i2c.tbs @@ -178,7 +178,7 @@ end sub sub si2c_stop() #IF I2C_AVAILABLE - si2c_stop() + i2c.stop() #ELSE io.num=si2c_sda(si2c_num) io.enabled=YES @@ -306,7 +306,7 @@ end sub function si2c_is_busy(num as byte)as no_yes #IF I2C_AVAILABLE - if i2c.state <> I2C_IDLE + if i2c.state <> I2C_IDLE then si2c_is_busy=YES else si2c_is_busy=NO