File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ bool ArduinoCellular::awaitNetworkRegistration(){
217
217
if (this ->debugStream != nullptr ){
218
218
this ->debugStream ->println (" Waiting for network registration..." );
219
219
}
220
- while (!modem.waitForNetwork (20000L )) {
220
+ while (!modem.waitForNetwork (waitForNetworkTimeout )) {
221
221
if (this ->debugStream != nullptr ){
222
222
this ->debugStream ->print (" ." );
223
223
}
Original file line number Diff line number Diff line change @@ -277,6 +277,8 @@ class ArduinoCellular {
277
277
Stream* debugStream = nullptr ; /* *< The stream to be used for printing debugging messages. */
278
278
279
279
static unsigned long getTime (); /* * Callback for getting the current time as an unix timestamp. */
280
+
281
+ static constexpr unsigned long waitForNetworkTimeout = 20000L ; /* *< Maximum wait time for network registration (In milliseconds). */
280
282
};
281
283
282
284
You can’t perform that action at this time.
0 commit comments