修改了flash 出厂日期
This commit is contained in:
parent
b13f9d14d6
commit
5bbffe4c23
|
@ -144,7 +144,7 @@ int Get_IotImei (char *buf, rt_size_t len)
|
|||
if ((*(rt_uint8_t *)FLASH_IOT_IMEI_ADDR != 0xE3) && (*(rt_uint8_t *)FLASH_IOT_IMEI_ADDR != 0x39))
|
||||
{
|
||||
char imei_buf[FLASH_IOT_IMEI_LEN]={0};
|
||||
Flash_Read(FLASH_IOT_IMEI_ADDR, imei_buf, len);
|
||||
Flash_Read(FLASH_IOT_IMEI_ADDR, (rt_uint8_t *)&imei_buf[0], len);
|
||||
LOG_D ("read imei: %s", imei_buf);
|
||||
rt_memcpy(buf, imei_buf, len);
|
||||
return 0;
|
||||
|
@ -166,7 +166,7 @@ int Get_IotImsi (char *buf, rt_size_t len)
|
|||
if ((*(rt_uint8_t *)FLASH_IOT_IMSI_ADDR != 0xE3) && (*(rt_uint8_t *)FLASH_IOT_IMSI_ADDR != 0x39))
|
||||
{
|
||||
char imsi_buf[FLASH_IOT_IMSI_LEN]={0};
|
||||
Flash_Read(FLASH_IOT_IMSI_ADDR, imsi_buf, len);
|
||||
Flash_Read(FLASH_IOT_IMSI_ADDR, (rt_uint8_t *)imsi_buf, len);
|
||||
LOG_D ("read imsi: %s", imsi_buf);
|
||||
rt_memcpy(buf, imsi_buf, len);
|
||||
|
||||
|
@ -189,7 +189,7 @@ int Get_IotIccid (char *buf, rt_size_t len)
|
|||
if ((*(rt_uint8_t *)FLASH_IOT_ICCID_ADDR != 0xE3) && (*(rt_uint8_t *)FLASH_IOT_ICCID_ADDR != 0x39))
|
||||
{
|
||||
char iccid_buf[FLASH_IOT_ICCID_LEN]={0};
|
||||
Flash_Read(FLASH_IOT_ICCID_ADDR, iccid_buf, len);
|
||||
Flash_Read(FLASH_IOT_ICCID_ADDR, (rt_uint8_t *)iccid_buf, len);
|
||||
LOG_D ("read iccid: %s", iccid_buf);
|
||||
rt_memcpy(buf, iccid_buf, len);
|
||||
return 0;
|
||||
|
@ -797,7 +797,7 @@ int BSP_Flash_Init (void)
|
|||
LOG_D ("Flash_Set_Sever_Data error!");
|
||||
}
|
||||
|
||||
Flash_SetProductTimeLimit (2025, 1, 15, 13, 50, 20, kFactoryTimeId);
|
||||
Flash_SetProductTimeLimit (2025, 1, 19, 13, 50, 20, kFactoryTimeId);
|
||||
Set_ExpirationTime (MAX_EXPIRATION_DAYS);
|
||||
|
||||
sci.hw_ver = SYS_HW_VERSION;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#define LOG_LVL LOG_LVL_DBG // 该模块对应的日志输出级别。不定义时,默认:调试级别
|
||||
#include <ulog.h>
|
||||
|
||||
#define RTC_FIRST_INIT_VALUE (0x1319)
|
||||
#define RTC_FIRST_INIT_VALUE (0x1318)
|
||||
|
||||
TsRtcDateTime RtcDateTime;
|
||||
|
||||
|
|
Loading…
Reference in New Issue