Просмотр исходного кода

change: luat_shell_loadstr用宏控制一下

Wendal Chen 3 лет назад
Родитель
Сommit
08edfed6ee
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      components/shell/luat_shell.c

+ 2 - 2
components/shell/luat_shell.c

@@ -120,7 +120,7 @@ void luat_shell_exec(char* uart_buff, size_t rcount) {
 }
 
 // ---- 各种子命令
-
+#ifdef LUAT_USE_LOADSTR
 static int luat_shell_loadstr(lua_State *L, void* ptr) {
     lua_settop(L, 0);
     rtos_msg_t* msg = (rtos_msg_t*)lua_topointer(L, -1);
@@ -133,7 +133,7 @@ static int luat_shell_loadstr(lua_State *L, void* ptr) {
     }
     return 0;
 }
-
+#endif
 static void cmd_ati(char* uart_buff, size_t len) {
     char buff[128] = {0};
     #ifdef LUAT_BSP_VERSION