解决参数没有变更时,不写Flash
This commit is contained in:
parent
4fa51839ce
commit
99d7d53553
|
@ -498,7 +498,6 @@ void Load_MenuInfo(void)
|
|||
#endif
|
||||
|
||||
#else //for #if (PST_FUNC == ENABLE)
|
||||
|
||||
if(Check_OTA() == TRUE){
|
||||
DBG_DUMP("OTA success, reset system param\n");
|
||||
|
||||
|
@ -711,7 +710,8 @@ EXIT:
|
|||
ret = -1;
|
||||
goto EXIT;
|
||||
}
|
||||
|
||||
printf("[%s:%d]((UIMenuStoreInfo*)tmpInfo)->uhInfoSize=%lu,sizeof(currentInfo)=%lu\n",
|
||||
__FUNCTION__, __LINE__, ((UIMenuStoreInfo*)tmpInfo)->uhInfoSize, sizeof(currentInfo));
|
||||
if(((UIMenuStoreInfo*)tmpInfo)->uhInfoSize == sizeof(currentInfo)){
|
||||
|
||||
#if HUNTING_CAMERA_MCU == ENABLE
|
||||
|
@ -1072,8 +1072,16 @@ EXIT:
|
|||
#if HUNTING_CAMERA_MCU == ENABLE
|
||||
sf_power_on_para_check_init();
|
||||
#endif
|
||||
|
||||
|
||||
/* check if sys param changed */
|
||||
if(memcmp(¤tInfo, &origInfo, sizeof(currentInfo)) == 0){
|
||||
int sflSize = sizeof(currentInfo) - ((int)¤tInfo.TimelapseTime - (int)¤tInfo);
|
||||
printf("sizeof(currentInfo)=%d, (int)¤tInfo.TimelapseTime=%d, (int)¤tInfo=%d, sflSize=%d,\n",
|
||||
sizeof(currentInfo), (int)¤tInfo.TimelapseTime, (int)¤tInfo, sflSize);
|
||||
|
||||
if(memcmp(¤tInfo.TimelapseTime, &origInfo.TimelapseTime, sflSize) == 0)
|
||||
{
|
||||
|
||||
DBG_DUMP("menu info is not changed\n");
|
||||
goto EXIT;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user