espressif / esp-adf

Espressif Audio Development Framework
Other
1.56k stars 689 forks source link

nvs_action_get_stats, result->data 数据类型有误 (AUD-5372) #1199

Closed tobraver closed 3 months ago

tobraver commented 7 months ago
esp_err_t nvs_action_get_stats(void *instance, action_arg_t *arg, action_result_t *result)
{
    AUDIO_MEM_CHECK(TAG, arg, return ESP_FAIL);
    AUDIO_MEM_CHECK(TAG, result, return ESP_FAIL);

    result->data = audio_calloc(1, sizeof(action_result_t));
    result->len = sizeof(action_result_t);

    return nvs_get_stats(arg->data, result->data);
}

result->data 数据类型应为 nvs_stats_t

hbler99 commented 4 months ago

感谢您指出该错误,我们会尽快改正。

jason-mao commented 3 months ago

It's fixed on faabc34af57e2aec1332690c3d513ab297648543