remove accidental clear of rest enable
This commit is contained in:
parent
14eb5fffbc
commit
3e0780b7db
1 changed files with 1 additions and 2 deletions
|
@ -319,8 +319,7 @@ static int pmw33xx_init_chip(const struct device *dev) {
|
|||
return -EIO;
|
||||
}
|
||||
|
||||
pmw33xx_write_reg(dev, PMW33XX_REG_CONFIG2, 0x00); // clear rest enable
|
||||
pmw33xx_write_reg(dev, PMW33XX_REG_BURST, 0x01); // clear rest enable
|
||||
pmw33xx_write_reg(dev, PMW33XX_REG_BURST, 0x01);
|
||||
struct pmw33xx_motion_burst val;
|
||||
pmw33xx_read_motion_burst(dev, &val); // read and throwout initial motion data
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue