Explorar o código

Merge branch 'master' of gitee.com:openLuat/LuatOS into memory_opt_global_funtions

Wendal Chen %!s(int64=4) %!d(string=hai) anos
pai
achega
fdad54a596
Modificáronse 2 ficheiros con 7 adicións e 6 borrados
  1. 6 6
      docs/api/lua/luat_lib_nbiot.md
  2. 1 0
      luat/modules/luat_main.c

+ 6 - 6
docs/api/lua/luat_lib_nbiot.md

@@ -188,13 +188,13 @@ log.info("nbiot", "tac", nbiot.tac())
 
 
 --------------------------------------------------
-# nbiot.tacTime
+# nbiot.tauTime
 
 ```lua
-nbiot.tacTime()
+nbiot.tauTime()
 ```
 
-读取Tac Time
+读取Tau Time
 
 ## 参数表
 
@@ -202,13 +202,13 @@ nbiot.tacTime()
 
 ## 返回值
 
-> `int`: 返回Tac Time值
+> `int`: 返回Tau Time值
 
 ## 调用示例
 
 ```lua
--- 读取Tac Time
-log.info("nbiot", "tac time", nbiot.tacTime())
+-- 读取Tau Time
+log.info("nbiot", "tau time", nbiot.tauTime())
 ```
 
 

+ 1 - 0
luat/modules/luat_main.c

@@ -31,6 +31,7 @@ lua_State * luat_get_state() {
 }
 
 int luat_search_module(const char* name, char* filename);
+void luat_os_print_heapinfo(const char* tag);
 
 static int pmain(lua_State *L) {
     int re = -2;