Skip to content

Commit

Permalink
Fix connection for non available roaming
Browse files Browse the repository at this point in the history
  • Loading branch information
carrascoacd committed Jun 14, 2019
1 parent 6358d9e commit 2e720b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Http.cpp
Expand Up @@ -68,7 +68,7 @@ Result HTTP::configureBearer(const char *apn){

sendATTest();

while ((sendCmdAndWaitForResp(REGISTRATION_STATUS, CONNECTED, 2000) != TRUE ||
while ((sendCmdAndWaitForResp(REGISTRATION_STATUS, CONNECTED, 2000) != TRUE &&
sendCmdAndWaitForResp(REGISTRATION_STATUS, ROAMING, 2000) != TRUE)
&& attempts < MAX_ATTEMPTS){
sendCmdAndWaitForResp(READ_VOLTAGE, OK, 1000);
Expand Down

0 comments on commit 2e720b2

Please sign in to comment.