Correct write_timer_ source data address

This commit is contained in:
Odd Stråbø 2023-08-20 02:17:31 +00:00
parent d98d1cabd5
commit 95cf42732e

View file

@ -125,7 +125,7 @@ void PCF85063Component::set_timer_interrupt_mode_(PCF85063ATimerInterruptMode_t
} }
bool PCF85063Component::write_timer_() { bool PCF85063Component::write_timer_() {
if (!this->write_bytes(0x10, &this->pcf85063_.raw[0x03], 2)) { if (!this->write_bytes(0x10, &this->pcf85063_.raw[0x10], 2)) {
ESP_LOGE(TAG, "Can't write I2C data."); ESP_LOGE(TAG, "Can't write I2C data.");
return false; return false;
} }