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: UbloxATCellularInterface.cpp
- Revision:
- 12:ff6fac481487
- Parent:
- 10:ba18f4418ee8
- Child:
- 13:39264b492ce7
--- a/UbloxATCellularInterface.cpp Mon Oct 30 14:48:14 2017 +0000
+++ b/UbloxATCellularInterface.cpp Tue Jan 09 13:20:44 2018 +0000
@@ -990,12 +990,11 @@
}
// Set PIN.
-void UbloxATCellularInterface::set_sim_pin(const char *pin) {
+void UbloxATCellularInterface::set_sim_pin(const char *pin)
+{
set_pin(pin);
}
-static int count = 0;
-
// Get the IP address of a host.
nsapi_error_t UbloxATCellularInterface::gethostbyname(const char *host,
SocketAddress *address,
@@ -1005,7 +1004,6 @@
int at_timeout;
char ipAddress[NSAPI_IP_SIZE];
- count++;
if (address->set_ip_address(host)) {
nsapi_error = NSAPI_ERROR_OK;
} else {