Skip to content

Commit

Permalink
removeed read when not neccesary
Browse files Browse the repository at this point in the history
  • Loading branch information
Crinst committed Nov 29, 2024
1 parent 294bad5 commit 815e1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/pcf2131/pcf2131.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ esp_err_t pcf2131_init_default_config(i2c_dev_t *dev){
// control register 1 = general config
I2C_DEV_TAKE_MUTEX(dev);

I2C_DEV_CHECK(dev, i2c_dev_read_reg(dev, REG_CTRL_STATUS1, reg_data, 1));
//I2C_DEV_CHECK(dev, i2c_dev_read_reg(dev, REG_CTRL_STATUS1, reg_data, 1));
reg_data[0] = 0x0; // TC_DIS 0, POR_OVRD 0, === normal run
I2C_DEV_CHECK(dev, i2c_dev_write_reg(dev, REG_CTRL_STATUS1, reg_data, 1));
//I2C_DEV_GIVE_MUTEX(dev);
Expand Down

0 comments on commit 815e1c8

Please sign in to comment.