feat: added support old version
This commit is contained in:
1 parent
eefe6c1210
commit
a19e4da88a
4 files changed
+5
-5
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Tested on
|
## Tested on
|
||||||
|
|
||||||
1. [ESP32 ESP-IDF v5.5.1](https://docs.espressif.com/projects/esp-idf/en/v5.5.1/esp32/index.html)
|
1. [ESP32 ESP-IDF v5.5.3](https://docs.espressif.com/projects/esp-idf/en/v5.5.3/esp32/index.html)
|
||||||
|
|
||||||
## SAST Tools
|
## SAST Tools
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ In an existing project, run the following command to install the component:
|
|||||||
|
|
||||||
```text
|
```text
|
||||||
cd ../your_project/components
|
cd ../your_project/components
|
||||||
git clone http://git.zh.com.ru/esp_components/zh_vector
|
git clone https://github.com/aZholtikov/zh_vector
|
||||||
```
|
```
|
||||||
|
|
||||||
In the application, add the component:
|
In the application, add the component:
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
* @return ESP_OK if success or an error code otherwise.
|
* @return ESP_OK if success or an error code otherwise.
|
||||||
*/
|
*/
|
||||||
esp_err_t zh_vector_init(zh_vector_t *vector, uint16_t unit);
|
esp_err_t zh_vector_init(zh_vector_t *vector, uint16_t unit, ...);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Deinitialize vector. Free all allocated memory.
|
* @brief Deinitialize vector. Free all allocated memory.
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
1.0.2
|
1.1.0
|
||||||
+1
-1
@@ -15,7 +15,7 @@ static const char *TAG = "zh_vector";
|
|||||||
|
|
||||||
static esp_err_t _resize(zh_vector_t *vector, uint16_t capacity);
|
static esp_err_t _resize(zh_vector_t *vector, uint16_t capacity);
|
||||||
|
|
||||||
esp_err_t zh_vector_init(zh_vector_t *vector, uint16_t unit)
|
esp_err_t zh_vector_init(zh_vector_t *vector, uint16_t unit, ...)
|
||||||
{
|
{
|
||||||
ZH_LOGI("Vector initialization begin.");
|
ZH_LOGI("Vector initialization begin.");
|
||||||
ZH_ERROR_CHECK(vector != NULL && unit != 0, ESP_ERR_INVALID_ARG, NULL, "Vector initialization failed. Invalid argument.");
|
ZH_ERROR_CHECK(vector != NULL && unit != 0, ESP_ERR_INVALID_ARG, NULL, "Vector initialization failed. Invalid argument.");
|
||||||
|
|||||||
Reference in new issue
Block a user