Commit bf8ce5d8 authored by 尹佳钦's avatar 尹佳钦

2020、09、17

parent d6475802
...@@ -31,7 +31,7 @@ void emAfTick(void) ...@@ -31,7 +31,7 @@ void emAfTick(void)
{ {
emberAfMainTickCallback(); emberAfMainTickCallback();
emberAfOtaServerTick(); emberAfOtaServerTick();
emberAfPluginGatewayTickCallback(); //emberAfPluginGatewayTickCallback();
emberAfPluginHeartbeatTickCallback(); emberAfPluginHeartbeatTickCallback();
emberAfTick(); emberAfTick();
} }
......
...@@ -205,8 +205,8 @@ error_return: ...@@ -205,8 +205,8 @@ error_return:
void emberAfMainTickCallback(void) void emberAfMainTickCallback(void)
{ {
static int last_time; static unsigned int last_time;
int time = halCommonGetInt32uMillisecondTick(); unsigned int time = halCommonGetInt32uMillisecondTick();
if((time-last_time)>=1000){ if((time-last_time)>=1000){
last_time = time; last_time = time;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment