From c0981ed481c9b542ba506fdd23178939493032d7 Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 6 Nov 2023 10:34:14 +0800 Subject: [PATCH] =?UTF-8?q?1.dp=E4=BF=A1=E6=81=AF=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/sf_app/code/source/4gMng/sf_sms.c | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/code/application/source/sf_app/code/source/4gMng/sf_sms.c b/code/application/source/sf_app/code/source/4gMng/sf_sms.c index 34bc0eae2..2ab25003d 100755 --- a/code/application/source/sf_app/code/source/4gMng/sf_sms.c +++ b/code/application/source/sf_app/code/source/4gMng/sf_sms.c @@ -2609,6 +2609,36 @@ SINT32 sf_power_off_check_ui_para_sava(void) } return 0; } +/************************************************* + Function: sf_power_off_statistics + Description: sf power off . + Input: N/A + Output: N/A + Return: 0:SUCCESS, errcode:FAIL + Others: N/A +*************************************************/ +SINT32 sf_power_off_statistics(void) +{ + UINT8 PowerOnMode = sf_poweron_type_get(); + UIMenuStoreInfo *puiPara = sf_app_ui_para_get(); + SF_PDT_PARAM_STATISTICS_S *psfPara = sf_statistics_param_get(); + + + if(((PowerOnMode == PWR_ON_TIME_SEND) || (PowerOnMode == PWR_ON_TIMELAPSE) || (PowerOnMode == PWR_ON_PIR)) && (sf_get_signal_ready_flag())) + { + psfPara->picSendCount++;//Failed to register, counted as sending once. + printf("picSendCount=%d\n", psfPara->picSendCount); + } + + if((PowerOnMode == PWR_ON_TIMELAPSE) || (PowerOnMode == PWR_ON_PIR)) + { + psfPara->TirgNum++; + psfPara->NewFlieCount+=(puiPara->Multishot+1); + printf("TirgNum=%d NewFlieCount=%d\n", psfPara->TirgNum, psfPara->NewFlieCount); + } + return 0; +} + /************************************************* Function: sf_power_off_check_camera_restart