summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-02-10 14:01:12 -0600
committerBrandon Bayer <bbayer@multitech.com>2016-02-10 14:06:49 -0600
commit7d63d18905b7f7ea2f0febc3b70c906ed42e9850 (patch)
treeca22b16a883c6c98c4620bfc8dbe4f766ad2f690 /src
parentdcd2eb11c9dfdc5b7691edfaaf3f4a28aa606ea9 (diff)
downloadsms-utils-7d63d18905b7f7ea2f0febc3b70c906ed42e9850.tar.gz
sms-utils-7d63d18905b7f7ea2f0febc3b70c906ed42e9850.tar.bz2
sms-utils-7d63d18905b7f7ea2f0febc3b70c906ed42e9850.zip
fix: phonebook access error message on CE910-DUAL0.0.15
Diffstat (limited to 'src')
-rw-r--r--src/phonebook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/phonebook.c b/src/phonebook.c
index 1d3d437..fc29d61 100644
--- a/src/phonebook.c
+++ b/src/phonebook.c
@@ -290,7 +290,8 @@ int phonebook_list_get(int fd, struct phonebook_list_info *list_info)
atcmd_writeline(fd, "AT+CPBR=%d,%d",
list_info->store.index_min, list_info->store.index_max);
tmp = atcmd_response_foreach_line(fd, list_info_callback, list_info);
- if (tmp < 0) {
+ //CE910 reports an error if empty. Don't report error in this case
+ if ((tmp < 0) && strcmp(Global.core.model, "CE910-DUAL")) {
log_error("listing failed");
phonebook_list_free(list_info);