Merge pull request #7359 from u-blox/sim_pin_init

Cellular: EasyCellularConnection::connect doesn't have any check that "CellularConnectionFSM" object is created or not
pull/7332/merge
Cruz Monrreal 2018-06-29 20:08:16 -05:00 committed by GitHub
commit 58b725be85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ nsapi_error_t EasyCellularConnection::connect(const char *sim_pin, const char *a
}
if (sim_pin) {
_cellularConnectionFSM->set_sim_pin(sim_pin);
this->set_sim_pin(sim_pin);
}
return connect();