RT-Thread-packages / at_device

AT component porting or samples for different devices
Apache License 2.0
217 stars 181 forks source link

SIM76xx SIM Card Check #90

Closed HikerPan closed 4 years ago

HikerPan commented 4 years ago

for (i = 0; i < CPIN_RETRY; i++) { at_obj_exec_cmd(client, resp, "AT+CPIN?"); if (at_resp_get_line_by_kw(resp, "READY")) { LOG_D("%s device SIM card detection failed.", device->name); break; } LOG_I("\"AT+CPIN\" commands send retry..."); rt_thread_mdelay(1000); } 上面的代码中LOG_D部分的打印信息反了,这个逻辑应该是success,不是failed

Lawlieta commented 4 years ago

你好,问题已经确定,确实是日志显示错误,近期会修复

Lawlieta commented 4 years ago

已修改 https://github.com/RT-Thread-packages/at_device/pull/108