fix warning message cmox sts_ac_code
This commit is contained in:
parent
5b5cbc3e2a
commit
7809a00d33
|
@ -46,7 +46,7 @@ uint32_t sts_hmac_verify(void)
|
||||||
APP_LOG(TS_OFF,VLEVEL_M,"0x%02x ", hmac_result.hmac_tag[i]);
|
APP_LOG(TS_OFF,VLEVEL_M,"0x%02x ", hmac_result.hmac_tag[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = memcmp(hmac_result.hmac_tag, sts_ac_code, sizeof(sts_ac_code));
|
ret = memcmp(hmac_result.hmac_tag, (void *)sts_ac_code, sizeof(sts_ac_code));
|
||||||
|
|
||||||
if (ret !=0)
|
if (ret !=0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1976,7 +1976,7 @@ void STS_REBOOT_CONFIG_Init(void)
|
||||||
{
|
{
|
||||||
APP_LOG(TS_OFF, VLEVEL_L, "\r\nInitial Boot with Empty Config, Flash with default config....\r\n");
|
APP_LOG(TS_OFF, VLEVEL_L, "\r\nInitial Boot with Empty Config, Flash with default config....\r\n");
|
||||||
OnStoreSTSCFGContextRequest();
|
OnStoreSTSCFGContextRequest();
|
||||||
memset(sts_ac_code,0x0,sizeof(sts_ac_code));
|
UTIL_MEM_set_8((void *)sts_ac_code, 0x00, YUNHORN_STS_AC_CODE_SIZE);
|
||||||
HAL_Delay(1000);
|
HAL_Delay(1000);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue