for u-blox
Fork of C027_Support by
Revision 130:3189949981ec, committed 2015-08-28
- Comitter:
- mazgch
- Date:
- Fri Aug 28 12:40:05 2015 +0000
- Parent:
- 129:7b747676de86
- Child:
- 131:965a7cbc1e58
- Commit message:
- adding quotes around the SIM pin
Changed in this revision
MDM.cpp | Show annotated file Show diff for this revision Revisions of this file |
MDM.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MDM.cpp Fri Aug 21 09:13:56 2015 +0000 +++ b/MDM.cpp Fri Aug 28 12:40:05 2015 +0000 @@ -421,7 +421,7 @@ ERROR("SIM PIN not available\r\n"); goto failure; } - sendFormated("AT+CPIN=%s\r\n", simpin); + sendFormated("AT+CPIN=\"%s\"\r\n", simpin); if (RESP_OK != waitFinalResp(_cbCPIN, &_dev.sim)) goto failure; } else if (_dev.sim != SIM_READY) {
--- a/MDM.h Fri Aug 21 09:13:56 2015 +0000 +++ b/MDM.h Fri Aug 28 12:40:05 2015 +0000 @@ -6,7 +6,8 @@ #include "Pipe.h" #include "SerialPipe.h" -#ifdef TARGET_UBLOX_C027 +#ifdef TARGET_UBLOX_C027 + // you can change this is you like to use a shield even on the C027 #define MDM_IF(onboard,shield) onboard #else #define MDM_IF(onboard,shield) shield