提交 db66f1d1 authored 作者: Giovanni Maruzzelli's avatar Giovanni Maruzzelli

FS-1085: gsmopen AT+CREG format error now warning

上级 f85fa23f
...@@ -1339,8 +1339,8 @@ int gsmopen_serial_read_AT(private_t * tech_pvt, int look_for_ack, int timeout_u ...@@ -1339,8 +1339,8 @@ int gsmopen_serial_read_AT(private_t * tech_pvt, int look_for_ack, int timeout_u
if (option_debug > 1) if (option_debug > 1)
DEBUGA_GSMOPEN("|%s| +CREG: Display: %d, Registration=%d\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i], n, stat); DEBUGA_GSMOPEN("|%s| +CREG: Display: %d, Registration=%d\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i], n, stat);
if (err < 2) { if (err < 2) {
ERRORA("|%s| is not formatted as: |+CREG: xx,yy|\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i]); WARNINGA("|%s| is not formatted as: |+CREG: xx,yy|\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i]);
} else { }
if (stat==0) { if (stat==0) {
ERRORA ERRORA
("|%s| CELLPHONE is not registered to network, consider to move it or additional antenna\n", ("|%s| CELLPHONE is not registered to network, consider to move it or additional antenna\n",
...@@ -1354,7 +1354,7 @@ int gsmopen_serial_read_AT(private_t * tech_pvt, int look_for_ack, int timeout_u ...@@ -1354,7 +1354,7 @@ int gsmopen_serial_read_AT(private_t * tech_pvt, int look_for_ack, int timeout_u
tech_pvt->not_registered=0; tech_pvt->not_registered=0;
tech_pvt->home_network_registered=1; tech_pvt->home_network_registered=1;
tech_pvt->roaming_registered=0; tech_pvt->roaming_registered=0;
} else { }else {
ERRORA("|%s| CELLPHONE is registered to a ROAMING network\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i]); ERRORA("|%s| CELLPHONE is registered to a ROAMING network\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i]);
tech_pvt->not_registered=0; tech_pvt->not_registered=0;
tech_pvt->home_network_registered=0; tech_pvt->home_network_registered=0;
...@@ -1364,8 +1364,6 @@ int gsmopen_serial_read_AT(private_t * tech_pvt, int look_for_ack, int timeout_u ...@@ -1364,8 +1364,6 @@ int gsmopen_serial_read_AT(private_t * tech_pvt, int look_for_ack, int timeout_u
} }
}
if ((strncmp(tech_pvt->line_array.result[i], "+CMGW:", 6) == 0)) { if ((strncmp(tech_pvt->line_array.result[i], "+CMGW:", 6) == 0)) {
int err; int err;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论