Skip to content

Commit

Permalink
CFUN=0 on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellanova committed Apr 7, 2021
1 parent e7109e6 commit b8ba678
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hal/src/electron/modem/mdm_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2030,7 +2030,7 @@ bool MDMParser::checkNetStatus(NetStatus* status /*= NULL*/)
ok = REG_OK(csd_.status()) && REG_OK(psd_.status());
}

MDM_PRINTF("%10.3f checkNetStatus %d", HAL_Timer_Get_Milli_Seconds() * 0.001, ok);
//MDM_PRINTF("%10.3f checkNetStatus %d \r\n", HAL_Timer_Get_Milli_Seconds() * 0.001, ok);

return ok;
failure:
Expand Down Expand Up @@ -2886,7 +2886,8 @@ bool MDMParser::detach(void)
MDM_INFO("\r\n[ Modem::detach ] = = = = = = = = = = = = = = =");
// Unregister from the network entirely
if (_checkModem()) {
sendFormated("AT+CFUN=0,0\r\n");
//TODO R510
sendFormated("AT+CFUN=0\r\n");
if (waitFinalResp(nullptr, nullptr, CFUN_TIMEOUT) == RESP_OK) {
_activated = false;
ok = true;
Expand Down

0 comments on commit b8ba678

Please sign in to comment.