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

This commit is contained in:
Giovanni Maruzzelli 2012-01-04 18:04:21 +01:00
parent f85fa23f26
commit db66f1d1f2

View File

@ -1339,8 +1339,8 @@ int gsmopen_serial_read_AT(private_t * tech_pvt, int look_for_ack, int timeout_u
if (option_debug > 1)
DEBUGA_GSMOPEN("|%s| +CREG: Display: %d, Registration=%d\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i], n, stat);
if (err < 2) {
ERRORA("|%s| is not formatted as: |+CREG: xx,yy|\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i]);
} else {
WARNINGA("|%s| is not formatted as: |+CREG: xx,yy|\n", GSMOPEN_P_LOG, tech_pvt->line_array.result[i]);
}
if (stat==0) {
ERRORA
("|%s| CELLPHONE is not registered to network, consider to move it or additional antenna\n",
@ -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)) {
int err;