diff --git a/apps/mimiclaw/mimi.c b/apps/mimiclaw/mimi.c index 5d316dfd3..c3d4238a8 100644 --- a/apps/mimiclaw/mimi.c +++ b/apps/mimiclaw/mimi.c @@ -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(); diff --git a/apps/mimiclaw/mimi_config.h b/apps/mimiclaw/mimi_config.h index 4ff67911d..7d089c574 100644 --- a/apps/mimiclaw/mimi_config.h +++ b/apps/mimiclaw/mimi_config.h @@ -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 diff --git a/apps/mimiclaw/tools/tool_led.c b/apps/mimiclaw/tools/tool_led.c index 4c11fc4d2..917837672 100644 --- a/apps/mimiclaw/tools/tool_led.c +++ b/apps/mimiclaw/tools/tool_led.c @@ -1,5 +1,6 @@ #include "tool_led.h" +#ifndef PLATFORM_LINUX #include "cJSON.h" #include "tdl_led_manage.h" #include "tdd_led_gpio.h" @@ -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 diff --git a/apps/mimiclaw/tools/tool_web_search.c b/apps/mimiclaw/tools/tool_web_search.c index c18b90b07..542d18ede 100644 --- a/apps/mimiclaw/tools/tool_web_search.c +++ b/apps/mimiclaw/tools/tool_web_search.c @@ -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"