Skip to content

Commit 0f0f4a4

Browse files
committed
Cellular: do not block forever on connect
1 parent e171dbf commit 0f0f4a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CellularConnectionHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ NetworkConnectionState CellularConnectionHandler::update_handleInit()
6363
return NetworkConnectionState::ERROR;
6464
}
6565

66-
if (!_cellular.connect(String(_settings.cell.apn), String(_settings.cell.login), String(_settings.cell.pass))) {
66+
if (!_cellular.connect(String(_settings.cell.apn), String(_settings.cell.login), String(_settings.cell.pass), false)) {
6767
Debug.print(DBG_ERROR, F("The board was not able to register to the network..."));
6868
return NetworkConnectionState::ERROR;
6969
}

0 commit comments

Comments
 (0)