Merge branch 'bugfix/fix_openthread_setting_get_next_empty_index' into 'master'

fix(openthread): fix openthread settings get next empty index

Closes IDFGH-10960

See merge request espressif/esp-idf!25671
pull/12177/head
Shu Chen 2023-08-31 18:00:06 +08:00
commit c135efee83
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -39,6 +39,7 @@ static esp_err_t get_next_empty_index(uint16_t aKey, uint8_t *index)
for (uint8_t i = 0; i != UINT8_MAX; i++) {
s_unused_pos++;
found = false;
snprintf(ot_nvs_key, sizeof(ot_nvs_key), OT_KEY_INDEX_PATTERN, (uint8_t)aKey, s_unused_pos);
ret = nvs_entry_find(OT_PART_NAME, OT_NAMESPACE, NVS_TYPE_BLOB, &nvs_it);
while (ret == ESP_OK) {