Skip to content

Commit

Permalink
fix:编译失败
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Jan 30, 2024
1 parent 388cebd commit 2eeed05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luat/modules/luat_lib_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ LUAT_WEAK uint32_t luat_pm_dtimer_remain(int id){
@api pm.dtimerCheck(id)
@int 定时器id
@return boolean 处理结果,true还在运行,false不在运行
@return number 如果运行,运行剩余时间,单位毫秒
@return number 如果运行,运行剩余时间,单位毫秒(需bsp支持)
@usage
-- 检查底层定时器是不是在运行
pm.dtimerCheck(0) -- 检查id=0的底层定时器
*/
static int l_pm_dtimer_check(lua_State *L) {
int dtimer_id = luaL_checkinteger(L, 1);
if (luat_pm_dtimer_check(dtimer_id)){
uint32_t remain = luat_pm_dtimer_remain(dtimer_id)
uint32_t remain = luat_pm_dtimer_remain(dtimer_id);
lua_pushboolean(L, 1);
lua_pushinteger(L, remain);
return 2;
Expand Down

0 comments on commit 2eeed05

Please sign in to comment.