Skip to content

Commit

Permalink
avoid CFUN errors on R510
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellanova committed Apr 5, 2021
1 parent 6b62515 commit 1cc4dd7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions hal/src/electron/modem/mdm_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1682,11 +1682,13 @@ bool MDMParser::interveneRegistration(void) {
csd_.reset();
psd_.reset();
_registrationInterventions++;
sendFormated("AT+CFUN=0,0\r\n");
//TODO R510
sendFormated("AT+CFUN=0\r\n"); //,0\r\n");
if (WAIT == waitFinalResp(nullptr, nullptr, CFUN_TIMEOUT)) {
return false;
}
sendFormated("AT+CFUN=1,0\r\n");
//TODO R510
sendFormated("AT+CFUN=1\r\n");//,0\r\n");
if (WAIT == waitFinalResp(nullptr, nullptr, CFUN_TIMEOUT)) {
return false;
}
Expand Down Expand Up @@ -1728,11 +1730,13 @@ bool MDMParser::interveneRegistration(void) {
MDM_INFO("Sticky EPS denied state for %lu s, RF reset", eps_.duration() / 1000);
eps_.reset();
_registrationInterventions++;
sendFormated("AT+CFUN=0,0\r\n");
//TODO R510
sendFormated("AT+CFUN=0\r\n"); //,0\r\n");
if (WAIT == waitFinalResp(nullptr, nullptr, CFUN_TIMEOUT)) {
return false;
}
sendFormated("AT+CFUN=1,0\r\n");
//TODO R510
sendFormated("AT+CFUN=1\r\n");//,0\r\n");
if (WAIT == waitFinalResp(nullptr, nullptr, CFUN_TIMEOUT)) {
return false;
}
Expand Down

0 comments on commit 1cc4dd7

Please sign in to comment.