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:
- 19:15f31e074d67
- Parent:
- 17:c6a4d5072589
- Parent:
- 16:afb3ca2d9915
- Child:
- 20:31d5e048fbfa
--- a/UbloxCellularBase.cpp Thu Sep 13 17:01:01 2018 +0500
+++ b/UbloxCellularBase.cpp Mon Sep 17 10:46:14 2018 +0000
@@ -556,7 +556,10 @@
wait_ms(250);
for (int retry_count = 0; !success && (retry_count < 20); retry_count++) {
- modem_power_up();
+ //In case of SARA-R4, modem takes a while to turn on, constantly toggling the power pin every ~2 secs causes the modem to never power up.
+ if ( (retry_count % 5) == 0) {
+ modem_power_up();
+ }
wait_ms(500);
// Modem tends to spit out noise during power up - don't confuse the parser
_at->flush();