Skip to content

Commit 90b3e2a

Browse files
committed
Reduce max wait time for network to 20s
1 parent 6531063 commit 90b3e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ArduinoCellular.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ bool ArduinoCellular::awaitNetworkRegistration(){
214214
if(this->debugStream != nullptr){
215215
this->debugStream->println("Waiting for network registration...");
216216
}
217-
while (!modem.waitForNetwork()) {
217+
while (!modem.waitForNetwork(20000L)) {
218218
if(this->debugStream != nullptr){
219219
this->debugStream->print(".");
220220
}

0 commit comments

Comments
 (0)