add zigbee e18 receive function

This commit is contained in:
Wang_Weigen
2021-09-26 16:12:09 +08:00
parent 6be676af78
commit b0f717bee4
2 changed files with 4 additions and 9 deletions
@@ -200,11 +200,11 @@ int EntmRecv(ATAgentType agent, char *rev_buffer, int buffer_len, int time_out)
UserSemaphoreSetValue(agent->entm_rx_notice, 0);
if (UserSemaphoreObtain(agent->entm_rx_notice, time_out)){
return ERROR;
return -ERROR;
}
if (buffer_len < agent->entm_recv_len){
return ERROR;
return -ERROR;
}
printf("EntmRecv once .\n");