Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions apps/mimiclaw/mimi.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,6 @@ static void mimi_runtime_init(void)
tal_system_sleep(1000);
retry++;
}
#elif ENABLE_FILE_SYSTEM
MIMI_LOGI(TAG, "Mounting inner flash to %s...", MIMI_FS_BASE);
int retry = 0;
OPERATE_RET rt = OPRT_OK;
while (retry < 3) {
rt = tkl_fs_mount(MIMI_FS_BASE, DEV_INNER_FLASH);
if (rt == OPRT_OK) {
MIMI_LOGI(TAG, "Inner flash mount success");
break;
}
MIMI_LOGW(TAG, "Inner flash mount failed (rt=%d), retry %d/3...", rt, retry + 1);
tal_system_sleep(1000);
retry++;
}
#endif

(void)tal_sw_timer_init();
Expand Down
2 changes: 1 addition & 1 deletion apps/mimiclaw/mimi_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@

/* Memory / Storage */
#ifndef MIMI_USE_SDCARD
#define MIMI_USE_SDCARD 1
#define MIMI_USE_SDCARD 0
#endif

#if MIMI_USE_SDCARD
Expand Down
13 changes: 13 additions & 0 deletions apps/mimiclaw/tools/tool_led.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "tool_led.h"

#ifndef PLATFORM_LINUX
#include "cJSON.h"
#include "tdl_led_manage.h"
#include "tdd_led_gpio.h"
Expand Down Expand Up @@ -142,3 +143,15 @@ OPERATE_RET tool_led_control_execute(const char *input_json, char *output, size_
cJSON_Delete(root);
return rt;
}

#else
OPERATE_RET tool_led_init(void)
{
return OPRT_NOT_SUPPORTED;
}

OPERATE_RET tool_led_control_execute(const char *input_json, char *output, size_t output_size)
{
return OPRT_NOT_SUPPORTED;
}
#endif
2 changes: 1 addition & 1 deletion apps/mimiclaw/tools/tool_web_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "mimi_config.h"

#if !defined(MIMI_USE_BAIDU_SEARCH)
#if !(MIMI_USE_BAIDU_SEARCH)

#include "cJSON.h"
#include "http_client_interface.h"
Expand Down