Browse Source

fix: sntp,通知lua层时报错

Wendal Chen 1 month ago
parent
commit
8e4c4f31c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/network/libsntp/luat_lib_sntp.c

+ 1 - 1
components/network/libsntp/luat_lib_sntp.c

@@ -58,7 +58,7 @@ end)
         lua_pushstring(L, "NTP_UPDATE");
         lua_pushinteger(L, 0); // 0代表通过socket.sntp同步的
         lua_call(L, 2, 0);
-        break;
+        return 0;
 /*
 @sys_pub socket
 时间同步失败