diff options
Diffstat (limited to 'board/oak/battery.c')
-rw-r--r-- | board/oak/battery.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/oak/battery.c b/board/oak/battery.c index a868e20bc0..25d6b6e46d 100644 --- a/board/oak/battery.c +++ b/board/oak/battery.c @@ -57,10 +57,10 @@ static int cutoff(void) buf[2] = PARAM_CUT_OFF_HIGH; i2c_lock(I2C_PORT_BATTERY, 1); - rv = i2c_xfer_unlocked(I2C_PORT_BATTERY, BATTERY_ADDR, buf, 3, NULL, 0, - I2C_XFER_SINGLE); - rv |= i2c_xfer_unlocked(I2C_PORT_BATTERY, BATTERY_ADDR, buf, 3, NULL, 0, - I2C_XFER_SINGLE); + rv = i2c_xfer_unlocked__7bf(I2C_PORT_BATTERY, BATTERY_ADDR__7bf, + buf, 3, NULL, 0, I2C_XFER_SINGLE); + rv |= i2c_xfer_unlocked__7bf(I2C_PORT_BATTERY, BATTERY_ADDR__7bf, + buf, 3, NULL, 0, I2C_XFER_SINGLE); i2c_lock(I2C_PORT_BATTERY, 0); return rv; |