1.修复短信指令
This commit is contained in:
parent
978df7ab0c
commit
ff663b3226
28
code/application/source/sf_app/code/source/4gMng/sf_sms.c
Normal file → Executable file
28
code/application/source/sf_app/code/source/4gMng/sf_sms.c
Normal file → Executable file
|
@ -83,6 +83,29 @@ extern char gsmPara[GPRS_INFO_LINE_MAX];
|
|||
* F U N C T I O N D E C L A R A T I O N S *
|
||||
**************************************************************************/
|
||||
|
||||
UINT32 sf_set_pir_sensitivity_sms(UIMenuStoreInfo *puiPara, UINT8 pirs)
|
||||
{
|
||||
UINT8 digPirLevel[10] = {200, 38, 30, 24, 18, 16, 10, 9, 8, 7};
|
||||
UINT8 digPirCount[10] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1};
|
||||
|
||||
if(pirs >= 10)
|
||||
return FAIL;
|
||||
puiPara->PirSensitivity = pirs;
|
||||
puiPara->DigitPirSensitivity = digPirLevel[pirs];
|
||||
puiPara->DigitPirCnt = digPirCount[pirs];
|
||||
puiPara->DigitPirWindowTime = 0;
|
||||
//#if SF_IS_RELEASE == ENABLE
|
||||
if(puiPara->PirSensitivity)
|
||||
{
|
||||
puiPara->TimelapseSwitch = SF_OFF;
|
||||
puiPara->TimelapseTime.Hour = 0;
|
||||
puiPara->TimelapseTime.Min = 0;
|
||||
puiPara->TimelapseTime.Sec = 0;
|
||||
//Save_MenuInfo();
|
||||
}
|
||||
//#endif
|
||||
return SUCCESS;
|
||||
}
|
||||
/*************************************************
|
||||
Function: sf_get_pic
|
||||
Description: get pic flag
|
||||
|
@ -431,7 +454,7 @@ UINT8 sf_message_data_processing(UINT8 strValue[30][32], UINT16 mm, UINT8 *sms_s
|
|||
|
||||
//delay
|
||||
i++;
|
||||
if(strlen((const char *)strValue[i]) == 1)
|
||||
if(strncmp((const char *)strValue[i], "OFF", 3) == 0)
|
||||
{
|
||||
pPara_sms_saved->PirDelaySwitch = 0;
|
||||
pPara_sms_saved->PirDelayTime.Hour = 0;
|
||||
|
@ -614,7 +637,8 @@ UINT8 sf_message_data_processing(UINT8 strValue[30][32], UINT16 mm, UINT8 *sms_s
|
|||
{
|
||||
if(((strValue[i][0] - '0') >= 0 ) && ((strValue[i][0] - '0') <= 9 ))
|
||||
{
|
||||
pPara_sms_saved->PirSensitivity = strValue[i][0] - '0';
|
||||
//pPara_sms_saved->PirSensitivity = strValue[i][0] - '0';
|
||||
sf_set_pir_sensitivity_sms(pPara_sms_saved, strValue[i][0] - '0');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user