ublox-cellular-base_r4
Diff: UbloxCellularBase.cpp
- Branch:
- reset_timeout
- Revision:
- 27:250eaef6232d
- Parent:
- 26:e4e444cc7b14
- Child:
- 29:8a38f91009ad
diff -r e4e444cc7b14 -r 250eaef6232d UbloxCellularBase.cpp --- a/UbloxCellularBase.cpp Thu Aug 01 18:57:01 2019 +0500 +++ b/UbloxCellularBase.cpp Fri Aug 02 11:56:14 2019 +0500 @@ -974,6 +974,7 @@ MBED_ASSERT(_at != NULL); + int at_timeout = _at_timeout; // Has to be inside LOCK()s at_set_timeout(3*60*1000); //command has 3 minutes timeout if (_at->send("AT+COPS=2") && _at->recv("OK")) { @@ -983,6 +984,7 @@ success = true; } + at_set_timeout(at_timeout); UNLOCK(); return success; }