Fork of ublox-at-cellular-interface to add LARA-R2 support
Fork of ublox-at-cellular-interface by
Diff: UbloxATCellularInterface.cpp
- Revision:
- 12:ff6fac481487
- Parent:
- 10:ba18f4418ee8
- Child:
- 13:39264b492ce7
diff -r ba18f4418ee8 -r ff6fac481487 UbloxATCellularInterface.cpp --- 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 {