Fix 11 start close gps failed bug.

This commit is contained in:
xiaojiazhu 2023-08-10 16:42:35 +08:00
parent dee56de5b3
commit 623eb1134a
2 changed files with 3 additions and 3 deletions

View File

@ -550,7 +550,7 @@ unsigned char sf_mcu_reg_set(MCUParam_t attrId, unsigned char val)
//instant mode ,dp power on, 4G mode should power down //instant mode ,dp power on, 4G mode should power down
temp &= ~0x60; /*bit5&bit6=0,daily mode*/ temp &= ~0x60; /*bit5&bit6=0,daily mode*/
} }
else if(simCardInsert && (puiPara->GprsMode == 1) && gModuleSleep) else if((simCardInsert && (puiPara->GprsMode == 1) && gModuleSleep) || (paraSyncFlag))
{ {
temp |= 0x40; /*bit6=1,instant mode*/ temp |= 0x40; /*bit6=1,instant mode*/
} }

View File

@ -249,8 +249,8 @@ static SINT32 hal_ttyusb_read(SINT32 fd, SF_CHAR *recvBuf, SINT32 waitTime)
SINT32 s32ret = 0; SINT32 s32ret = 0;
fd_set read_fds; fd_set read_fds;
struct timeval TimeoutVal; struct timeval TimeoutVal;
// if(waitTime > 0) if(waitTime > 0)
// sf_sleep_ms(waitTime); sf_sleep_ms(waitTime);
while(waitTime--){ while(waitTime--){