소스 검색

fix: sntp,通知lua层时报错

Wendal Chen 1 개월 전
부모
커밋
8e4c4f31c1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 时间同步失败