From 672d76cb314929c7a3406bf7362e0b6a0dd6af5f Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 23 Feb 2018 22:03:13 -0800 Subject: [PATCH] Fix I2C success mask --- exosphere/bpmpfw/src/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/bpmpfw/src/i2c.c b/exosphere/bpmpfw/src/i2c.c index 46e811266..709e78004 100644 --- a/exosphere/bpmpfw/src/i2c.c +++ b/exosphere/bpmpfw/src/i2c.c @@ -71,7 +71,7 @@ int i2c_write(unsigned int device, uint32_t val, unsigned int num_bytes) { } /* Return CMD1_STAT == SL1_XFER_SUCCESSFUL. */ - return (I2C_I2C_STATUS_0 & 7) == 0; + return (I2C_I2C_STATUS_0 & 0xF) == 0; } /* Writes a byte val to reg for given device. */