Browse Source

update:end不能作为lua函数名

alienwalker 3 năm trước cách đây
mục cha
commit
40dd3b500b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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) }
 };