diff options
author | James Maki <jmaki@multitech.com> | 2010-08-23 10:12:29 -0500 |
---|---|---|
committer | James Maki <jmaki@multitech.com> | 2010-08-23 10:12:29 -0500 |
commit | 385904d9f3b156079b83077a1c655011e6ec240c (patch) | |
tree | d9fa5cd739666cb909f8bcc86186f06f85a7980e /src/atcmd.c | |
parent | 93f445716bfa3543fc369b66ab8c3e61df47e1d8 (diff) | |
download | sms-utils-385904d9f3b156079b83077a1c655011e6ec240c.tar.gz sms-utils-385904d9f3b156079b83077a1c655011e6ec240c.tar.bz2 sms-utils-385904d9f3b156079b83077a1c655011e6ec240c.zip |
H4/Sierra Wireless does not support AT+CPBR
If we cannot get the phonebook before sending just warn and continue.
Diffstat (limited to 'src/atcmd.c')
-rw-r--r-- | src/atcmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atcmd.c b/src/atcmd.c index 5c59a4d..76372d2 100644 --- a/src/atcmd.c +++ b/src/atcmd.c @@ -368,7 +368,8 @@ int atcmd_expect_line(int fd, char *buf, size_t len, const char *expect) } else if (!strcmp(buf, "ERROR")) { log_error("expected %s but got %s", expect, buf); return -1; - } else if (!strncmp(buf, "+CMS ERROR: ", sizeof("+CMS ERROR: ") - 1)) { + } else if (!strncmp(buf, "+CMS ERROR: ", sizeof("+CMS ERROR: ") - 1) || + !strncmp(buf, "+CME ERROR: ", sizeof("+CME ERROR: ") - 1)) { log_error("expected %s but got %s", expect, buf); return -1; } |