mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +00:00
Fix I2C success mask
This commit is contained in:
parent
56f5b56235
commit
672d76cb31
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ int i2c_write(unsigned int device, uint32_t val, unsigned int num_bytes) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return CMD1_STAT == SL1_XFER_SUCCESSFUL. */
|
/* 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. */
|
/* Writes a byte val to reg for given device. */
|
||||||
|
|
Loading…
Reference in a new issue