Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync handle undefined message patch from cellular-interface. #2

Merged
merged 1 commit into from
Oct 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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