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.
Fork of Adafruit_FONA_Library by
Revision 2:a47b72e3654e, committed 2015-06-29
- Comitter:
- marcpl
- Date:
- Mon Jun 29 20:48:25 2015 +0000
- Parent:
- 1:89299f09929c
- Commit message:
- Avoid converting a bool into an uint8.
Changed in this revision
Adafruit_FONA.cpp | Show annotated file Show diff for this revision Revisions of this file |
Adafruit_FONA.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 89299f09929c -r a47b72e3654e Adafruit_FONA.cpp --- a/Adafruit_FONA.cpp Sat Jun 27 15:03:10 2015 +0000 +++ b/Adafruit_FONA.cpp Mon Jun 29 20:48:25 2015 +0000 @@ -152,7 +152,7 @@ /********* SIM ***********************************************************/ -uint8_t Adafruit_FONA::unlockSIM(char *pin) +bool Adafruit_FONA::unlockSIM(char *pin) { char sendbuff[14] = "AT+CPIN="; sendbuff[8] = pin[0];
diff -r 89299f09929c -r a47b72e3654e Adafruit_FONA.h --- a/Adafruit_FONA.h Sat Jun 27 15:03:10 2015 +0000 +++ b/Adafruit_FONA.h Mon Jun 29 20:48:25 2015 +0000 @@ -92,7 +92,7 @@ bool getBattVoltage(uint16_t *v); // SIM query - uint8_t unlockSIM(char *pin); + bool unlockSIM(char *pin); uint8_t getSIMCCID(char *ccid); uint8_t getNetworkStatus(void); uint8_t getRSSI(void);