这是一次长久的提交:
1. 应用界面增加了返回主页的按钮 2. 修复了gif渲染内存泄漏的严重bug 3. 将PetDao当中的cJSON API替换为cpp_json,完美通过测试 4. 整合已经实现的各种上层建筑,实现了一个宠物对话基本业务应用,用于样品测试展示用 5. 重构了音频播放类,使其更modern,更加便于移植和拓展
This commit is contained in:
@@ -9,10 +9,10 @@ uint32_t Flash_Size = 0;
|
||||
uint32_t SDCard_Size = 0;
|
||||
|
||||
|
||||
esp_err_t s_example_write_file(const char *path, char *data)
|
||||
esp_err_t s_example_write_file(const char *path, const char *data, const char *type)
|
||||
{
|
||||
ESP_LOGI(SD_TAG, "Opening file %s", path);
|
||||
FILE *f = fopen(path, "w");
|
||||
FILE *f = fopen(path, type);
|
||||
if (f == NULL) {
|
||||
ESP_LOGE(SD_TAG, "Failed to open file for writing");
|
||||
return ESP_FAIL;
|
||||
|
||||
@@ -30,7 +30,7 @@ extern "C" {
|
||||
esp_err_t SD_Card_CS_EN(void);
|
||||
esp_err_t SD_Card_CS_Dis(void);
|
||||
|
||||
esp_err_t s_example_write_file(const char *path, char *data);
|
||||
esp_err_t s_example_write_file(const char *path, const char *data, const char *type);
|
||||
esp_err_t s_example_read_file(const char *path);
|
||||
|
||||
extern uint32_t SDCard_Size;
|
||||
|
||||
Reference in New Issue
Block a user