Skip to content

Commit

Permalink
bugfix si2c library
Browse files Browse the repository at this point in the history
  • Loading branch information
salhk committed Oct 24, 2023
1 parent 59c0c5c commit 34397d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions super_i2c/super_i2c.tbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 34397d5

Please sign in to comment.