C027 Support

Fork of C027_Support by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
sarahmarshy
Date:
Tue Oct 04 20:23:00 2016 +0000
Parent:
139:596bcb599ac1
Commit message:
Sim status reporting changes.

Changed in this revision

MDM.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 596bcb599ac1 -r 8ef12abc4472 MDM.cpp
--- a/MDM.cpp	Tue Apr 12 18:45:34 2016 +0000
+++ b/MDM.cpp	Tue Oct 04 20:23:00 2016 +0000
@@ -2057,8 +2057,8 @@
     const char* txtLpm[] = { "Disabled", "Enabled", "Active" };
     if (status->lpm < sizeof(txtLpm)/sizeof(*txtLpm))
         dprint(param, "  Power Save:   %s\r\n", txtLpm[status->lpm]);
-    const char* txtSim[] = { "Unknown", "Missing", "Pin", "Ready" };
-    if (status->sim < sizeof(txtSim)/sizeof(*txtSim) && (status->sim != SIM_UNKNOWN))
+    const char* txtSim[] = { "Unknown", "Missing", "Pin", "Puk", "Ready", "Wrong Pin" };
+    if (status->sim < sizeof(txtSim)/sizeof(*txtSim))
         dprint(param, "  SIM:          %s\r\n", txtSim[status->sim]);
     if (*status->ccid)  
         dprint(param, "  CCID:         %s\r\n", status->ccid);