From 28853f7f4f7500cf91d48f22eb7449f864acf33f Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Sat, 21 Mar 2026 11:35:59 +0300 Subject: [PATCH] style: changed variable type --- include/zh_pcf8574.h | 2 +- zh_pcf8574.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/zh_pcf8574.h b/include/zh_pcf8574.h index 77dd58e..a1d8def 100755 --- a/include/zh_pcf8574.h +++ b/include/zh_pcf8574.h @@ -75,7 +75,7 @@ extern "C" bool p5_gpio_work_mode; /*!< Expander GPIO P5 work mode. */ bool p6_gpio_work_mode; /*!< Expander GPIO P6 work mode. */ bool p7_gpio_work_mode; /*!< Expander GPIO P7 work mode. */ - uint8_t interrupt_gpio; /*!< Interrupt GPIO. @attention Must be same for all PCF8574 expanders. */ + gpio_num_t interrupt_gpio; /*!< Interrupt GPIO. @attention Must be same for all PCF8574 expanders. */ i2c_master_bus_handle_t i2c_handle; /*!< Unique I2C bus handle. @attention Must be same for all PCF8574 expanders. */ } zh_pcf8574_init_config_t; diff --git a/zh_pcf8574.c b/zh_pcf8574.c index 86a2732..e8aea04 100755 --- a/zh_pcf8574.c +++ b/zh_pcf8574.c @@ -16,7 +16,7 @@ static const char *TAG = "zh_pcf8574"; TaskHandle_t zh_pcf8574 = NULL; static SemaphoreHandle_t _interrupt_semaphore = NULL; -volatile static uint8_t _interrupt_gpio = GPIO_NUM_MAX; +volatile static gpio_num_t _interrupt_gpio = GPIO_NUM_MAX; volatile static uint8_t _i2c_matrix[16] = {0}; static const uint8_t _gpio_matrix[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; static zh_pcf8574_stats_t _stats = {0};