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.
Diff: UbloxCellularBase.cpp
- Revision:
- 12:aa3cbc3f88c5
- Parent:
- 11:57f64bc518c0
- Child:
- 13:158a035b1b50
--- a/UbloxCellularBase.cpp Tue Jan 02 12:38:56 2018 +0500
+++ b/UbloxCellularBase.cpp Tue Jan 09 12:34:53 2018 +0500
@@ -213,7 +213,7 @@
*
* @return true if successful, otherwise false.
*/
-bool UbloxCellularBase::get_imei(char *imei_to_send,int size)
+bool UbloxCellularBase::get_imei(char *imei_to_send, int size)
{
bool success;
LOCK();
@@ -225,8 +225,7 @@
success = _at->send("AT+CGSN") && _at->recv("%15[^\n]\nOK\n", _dev_info.imei);
tr_info("DevInfo: IMEI=%s", _dev_info.imei);
- if(success)
- {
+ if (success) {
memcpy(imei_to_send,_dev_info.imei,size);
imei_to_send[size-1] = '\0';
}