summaryrefslogtreecommitdiff
path: root/src/atcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atcmd.c')
-rw-r--r--src/atcmd.c3
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;
}