diff --git a/WIKI_EN.md b/WIKI_EN.md index 813453b..aa577b2 100644 --- a/WIKI_EN.md +++ b/WIKI_EN.md @@ -594,4 +594,4 @@ limitations under the License. --- -*Generated for zh_160x_i2c v5.0.0* +*Generated for zh_160x_i2c v5.0.1* diff --git a/WIKI_RU.md b/WIKI_RU.md index bb8729f..33e9289 100644 --- a/WIKI_RU.md +++ b/WIKI_RU.md @@ -594,4 +594,4 @@ void app_main(void) --- -*Generated for zh_160x_i2c v5.0.0* +*Generated for zh_160x_i2c v5.0.1* diff --git a/idf_component.yml b/idf_component.yml index 4cbb15d..2f826a8 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -1,6 +1,6 @@ description: ESP32 ESP-IDF component for LCD 1602A/1604A displays via I2C using PCF8574(A) expanders url: https://github.com/aZholtikov/zh_160x_i2c -version: "5.0.0" +version: "5.0.1" license: "Apache-2.0" maintainers: - "Alexey Zholtikov " diff --git a/version.txt b/version.txt index 28cbf7c..32f3eaa 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -5.0.0 \ No newline at end of file +5.0.1 \ No newline at end of file diff --git a/zh_160x_i2c.c b/zh_160x_i2c.c index 608e6e1..53415da 100644 --- a/zh_160x_i2c.c +++ b/zh_160x_i2c.c @@ -90,7 +90,7 @@ esp_err_t zh_160x_init(zh_pcf8574_handle_t **expander, zh_160x_i2c_handle_t **ha ZH_ERROR_CHECK(*handle != NULL, ESP_ERR_NO_MEM, NULL, "160X initialization failed. Failed to allocate 160X handle."); (*handle)->zh_pcf8574_handle = *expander; (*handle)->zh_160x_i2c_lcd_size = size; - ZH_ERROR_CHECK(_zh_160x_lcd_init(*handle) == ESP_OK, ESP_FAIL, NULL, "160X initialization failed. PCF8574 error."); + ZH_ERROR_CHECK(_zh_160x_lcd_init(*handle) == ESP_OK, ESP_FAIL, heap_caps_free(*handle); *handle = NULL, "160X initialization failed. PCF8574 error."); ZH_LOGI("160X initialization completed successfully."); return ESP_OK; }