summaryrefslogtreecommitdiff
path: root/software
diff options
context:
space:
mode:
Diffstat (limited to 'software')
-rw-r--r--software/ihu/i2c.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/software/ihu/i2c.inc b/software/ihu/i2c.inc
index 072d01d..b23ad67 100644
--- a/software/ihu/i2c.inc
+++ b/software/ihu/i2c.inc
@@ -30,10 +30,10 @@
;; -------------------------------------
i2c_init
- movlw I2C_MASK ; as every write access is read-update-write this needs
+ movlw ~I2C_MASK ; as every write access is read-update-write this needs
andwf I2C_PORT,f ; to be done in one step (external pull-ups!)
bsf STATUS,RP0
- movlw ~I2C_MASK
+ movlw I2C_MASK
iorwf I2C_PORT,f
bcf STATUS,RP0
return