Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for NXP RTC PCF2131 #654

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
removeed read when not neccesary
  • Loading branch information
Crinst committed Nov 29, 2024
commit 815e1c829a12f01761390dc201c98e2e4d473475
2 changes: 1 addition & 1 deletion components/pcf2131/pcf2131.c
Original file line number Diff line number Diff line change
@@ -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);
Loading