Prototyping the Adaptable Emergency System on an C027 board.
Dependencies: C027_Support mbed
Fork of c027_prototyping by
Diff: sms_lib.cpp
- Revision:
- 14:d1f114749b3c
- Parent:
- 10:b9ca12e9bb34
- Child:
- 17:726bbc1b73ee
--- a/sms_lib.cpp Tue Sep 30 18:24:06 2014 +0000 +++ b/sms_lib.cpp Tue Sep 30 18:40:54 2014 +0000 @@ -43,7 +43,7 @@ int ix[1]; int numReceivedSMS = mdm->smsList("REC UNREAD", ix, 1); - if (numReceivedSMS > 1 && mdm->smsRead(ix[0], sms->phone_num, sms->msg_buf, sizeof(sms->msg_buf))) { + if (numReceivedSMS >= 1 && mdm->smsRead(ix[0], sms->phone_num, sms->msg_buf, sizeof(sms->msg_buf))) { mdm->smsDelete(ix[0]); return 1; }