fix at timer bug when two socket run

This commit is contained in:
supowang
2021-03-16 14:19:07 +08:00
parent 13d5ea043a
commit e609bb3e69
2 changed files with 11 additions and 9 deletions

View File

@@ -78,6 +78,8 @@ typedef struct at_data_channel_st {
at_channel_status_t status;
k_stopwatch_t timer;
const char *remote_ip;
const char *remote_port;
} at_data_channel_t;
@@ -113,8 +115,6 @@ typedef struct at_agent_st {
k_task_t parser;
at_cache_t recv_cache;
k_stopwatch_t timer;
k_mutex_t global_lock;
char *cmd_buf;