From e82612895e4cc3a4ea3dd0b66c6e958b12541192 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Mon, 23 Feb 2026 10:21:44 +0300 Subject: [PATCH] fix: incorrect min_stack_size initial information --- version.txt | 2 +- zh_pcf8574.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/version.txt b/version.txt index fad066f..4fd0fe3 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.5.0 \ No newline at end of file +2.5.1 \ No newline at end of file diff --git a/zh_pcf8574.c b/zh_pcf8574.c index 964ab91..50edc1e 100755 --- a/zh_pcf8574.c +++ b/zh_pcf8574.c @@ -57,6 +57,10 @@ esp_err_t zh_pcf8574_init(const zh_pcf8574_init_config_t *config, zh_pcf8574_han ZH_ERROR_CHECK(err == ESP_OK, err, i2c_master_bus_rm_device(handle->dev_handle); gpio_isr_handler_remove((gpio_num_t)config->interrupt_gpio); gpio_reset_pin((gpio_num_t)config->interrupt_gpio); zh_vector_free(&_vector); vSemaphoreDelete(_interrupt_semaphore), "PCF8574 initialization failed. Task initialization failed."); } + if (_stats.min_stack_size == 0) + { + _stats.min_stack_size = config->stack_size; + } handle->is_initialized = true; for (uint8_t i = 0; i < sizeof(_i2c_matrix); ++i) {