Skip to content

Commit

Permalink
Sync handle undefined message patch from cellular-interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
ActoryOu committed Oct 6, 2022
1 parent 6b1ac75 commit 54ab327
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions source/cellular_r4.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,15 @@ CellularError_t rebootCellularModem( CellularContext_t * pContext,
CellularError_t cellularStatus = CELLULAR_SUCCESS;
CellularPktStatus_t pktStatus = CELLULAR_PKT_STATUS_OK;
uint32_t count = 0;

CellularAtReq_t atReqGetWoPrefix =
{
NULL,
CELLULAR_AT_WO_PREFIX,
NULL,
NULL,
NULL,
0
};
CellularAtReq_t atReqGetNoResult =
{
"AT+CFUN=15",
Expand All @@ -283,9 +291,9 @@ CellularError_t rebootCellularModem( CellularContext_t * pContext,
{
LogInfo( ( "rebootCellularModem: Use ATE0 command to test modem status." ) );

atReqGetNoResult.pAtCmd = "ATE0";
atReqGetWoPrefix.pAtCmd = "ATE0";

pktStatus = _Cellular_TimeoutAtcmdRequestWithCallback( pContext, atReqGetNoResult, ENBABLE_MODULE_UE_REBOOT_POLL_TIME );
pktStatus = _Cellular_TimeoutAtcmdRequestWithCallback( pContext, atReqGetWoPrefix, ENBABLE_MODULE_UE_REBOOT_POLL_TIME );
cellularStatus = _Cellular_TranslatePktStatus( pktStatus );

if( cellularStatus == CELLULAR_SUCCESS )
Expand Down

0 comments on commit 54ab327

Please sign in to comment.