From 62bb100561e52ebe1ed933a91a7c73bde066badd Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Sun, 7 Dec 2025 12:52:00 +0300 Subject: [PATCH] wip: --- zh_pcf8574.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zh_pcf8574.c b/zh_pcf8574.c index 2986a4f..2384295 100755 --- a/zh_pcf8574.c +++ b/zh_pcf8574.c @@ -17,6 +17,7 @@ TaskHandle_t zh_pcf8574 = NULL; static SemaphoreHandle_t _interrupt_semaphore = NULL; static uint8_t _interrupt_gpio = GPIO_NUM_MAX; +static uint8_t _expander_counter = 0; static const uint8_t _gpio_matrix[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; static bool _is_prev_gpio_isr_service = false; @@ -73,6 +74,7 @@ esp_err_t zh_pcf8574_init(const zh_pcf8574_init_config_t *config, zh_pcf8574_han } } handle->is_initialized = true; + ++_expander_counter; ZH_LOGI("PCF8574 initialization completed successfully."); return ESP_OK; }