소스 검색

update:end不能作为lua函数名

alienwalker 3 년 전
부모
커밋
40dd3b500b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      luat/modules/luat_lib_fota.c

+ 2 - 2
luat/modules/luat_lib_fota.c

@@ -160,8 +160,8 @@ static const rotable_Reg_t reg_fota[] =
 	{ "init",		ROREG_FUNC(l_fota_init)},
 	{ "wait",		ROREG_FUNC(l_fota_wait)},
 	{ "run",		ROREG_FUNC(l_fota_write)},
-	{ "done",		ROREG_FUNC(l_fota_done)},
-	{ "end",		ROREG_FUNC(l_fota_end)},
+	{ "isDone",		ROREG_FUNC(l_fota_done)},
+	{ "finish",		ROREG_FUNC(l_fota_end)},
 	{ NULL,         ROREG_INT(0) }
 };