69 Star 512 Fork 334

魔罗 / AT Command

 / 详情

URC 超时开始时间没有初始化

进行中
创建于  
2023-12-29 15:45

没初始化会导致每次到超时判断时就会直接判定超时。

static void urc_recv_process(at_info_t *ai, char *buf, unsigned int size)
{
    char *urc_buf;
    int ch;
    if (ai->urcbuf == NULL)
        return;
    if (size == 0) {
        urc_timeout_process(ai);
        return;
    }
    if (!ai->urc_enable) {
        if (!AT_IS_TIMEOUT(ai->urc_timer, ai->urc_disable_time))
            return;
        ai->urc_enable = 1;
        AT_DEBUG(ai, "Enable the URC match handler\r\n");
    }
    ai->urc_timer = at_get_ms();
    urc_buf  = ai->urcbuf;

评论 (0)

captain 创建了任务
魔罗 任务状态待办的 修改为进行中
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
C
1
https://gitee.com/moluo-tech/AT-Command.git
git@gitee.com:moluo-tech/AT-Command.git
moluo-tech
AT-Command
AT Command

搜索帮助