Renamed register name define to be easier to understand
This commit is contained in:
parent
77c24b7fdc
commit
ee5a466666
@ -12,7 +12,7 @@
|
||||
#define QMC5883L_TEMP_MSB_REG 0x08
|
||||
#define QMC5883L_CTRL1_REG 0x09
|
||||
#define QMC5883L_CTRL2_REG 0x0A
|
||||
#define QMC5883L_SETRES_REG 0x0B
|
||||
#define QMC5883L_SETRST_REG 0x0B
|
||||
|
||||
/* Field masks */
|
||||
#define QMC5883L_DRDY_BIT 0x01
|
||||
@ -35,7 +35,7 @@ static QMC5883L_calibration_data _calibration_data = {0};
|
||||
|
||||
bool QMC5883L_init(void)
|
||||
{
|
||||
return i2c_write_reg(QMC5883L_I2C_ADDR, QMC5883L_SETRES_REG, 0x01);
|
||||
return i2c_write_reg(QMC5883L_I2C_ADDR, QMC5883L_SETRST_REG, 0x01);
|
||||
}
|
||||
|
||||
bool QMC5883L_software_reset(void)
|
||||
|
Loading…
Reference in New Issue
Block a user