From d2f656ed1363bf5519321c4e1103ca3ecbd5b33d Mon Sep 17 00:00:00 2001 From: Vladimir Kozhevnikov Date: Mon, 5 Feb 2024 21:55:51 +0300 Subject: [PATCH] Fixed minimal available address of NVRAM --- esphome/components/ds3232/ds3232.h | 2 +- esphome/components/ds3232/time.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/ds3232/ds3232.h b/esphome/components/ds3232/ds3232.h index 9e2e09a737..9de58fb494 100644 --- a/esphome/components/ds3232/ds3232.h +++ b/esphome/components/ds3232/ds3232.h @@ -48,7 +48,7 @@ enum DS3232NVRAMState { static const uint8_t SVC_NVRAM_ADDRESS = 0x14; /// @brief Minimal number of NVRAM register available to user variables. -static const uint8_t MIN_NVRAM_ADDRESS = 0x20; +static const uint8_t MIN_NVRAM_ADDRESS = 0x18; /// @brief Maximal number of NVRAM register available to user variables. static const uint8_t MAX_NVRAM_ADDRESS = 0xFF; diff --git a/esphome/components/ds3232/time.py b/esphome/components/ds3232/time.py index 6834375458..2be35db3d9 100644 --- a/esphome/components/ds3232/time.py +++ b/esphome/components/ds3232/time.py @@ -126,7 +126,7 @@ CONF_REGISTER = "register" CONF_PERSISTENT_STORAGE = "persistent_storage" CONF_CPP_TYPE = "cpp_type" -MIN_REGISTER_VALUE = 0x16 +MIN_REGISTER_VALUE = 0x18 MAX_REGISTER_VALUE = 0xFF