Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Socket USBHostWANDongle lwip-sys lwip
Fork of VodafoneUSBModem by
Diff: sms/SMSInterface.cpp
- Revision:
- 80:c0e63c16306e
- Parent:
- 79:a6ac8206a58d
- Child:
- 83:897a0de9d668
diff -r a6ac8206a58d -r c0e63c16306e sms/SMSInterface.cpp
--- a/sms/SMSInterface.cpp Wed Jan 09 16:13:50 2013 +0000
+++ b/sms/SMSInterface.cpp Tue Jan 15 17:24:37 2013 +0000
@@ -17,7 +17,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define __DEBUG__ 4
+#define __DEBUG__ 0
#ifndef __MODULE__
#define __MODULE__ "SMSInterface.cpp"
#endif
@@ -117,6 +117,7 @@
int ret;
DBG("Get next message");
+
m_inboxMtx.lock();
if( ((m_msgRefListCount == 0) && m_needsUpdate) || ((m_msgRefListCount > 0) && (m_msgRefList[0] == -1)) )
{
@@ -318,6 +319,7 @@
/*virtual*/ bool SMSInterface::isATCodeHandled(const char* atCode) //Is this AT code handled
{
+
DBG("AT code is %s", atCode);
if( strcmp("+CMTI", atCode) == 0 )
{
@@ -354,6 +356,7 @@
{
return; //Not supported
}
+
DBG("Unsollicited result code: %s - %s", atCode, evt);
