1.优化升级写mcu

2.修复cardv下写mcu不生效问题
This commit is contained in:
payton 2023-09-07 14:10:01 +08:00
parent f60c8701ab
commit 0a7fbcec2f
2 changed files with 3 additions and 1 deletions

View File

@ -2019,6 +2019,7 @@ void* sf_sys_do_upgrade(void *arg)
//sf_set_fw_update(1); //sf_set_fw_update(1);
sf_set_send_statu(TRUE); sf_set_send_statu(TRUE);
sf_sys_status_led_set(SF_LED_SYS_STATE_UPDATE); sf_sys_status_led_set(SF_LED_SYS_STATE_UPDATE);
vos_util_delay_ms(500);
//BKG_PostEvent(NVTEVT_BKW_FW_UPDATE); //BKG_PostEvent(NVTEVT_BKW_FW_UPDATE);
if(0 != sf_fwupdate()){ if(0 != sf_fwupdate()){
sf_sys_status_led_set(SF_LED_SYS_STATE_ERROR); sf_sys_status_led_set(SF_LED_SYS_STATE_ERROR);
@ -2640,4 +2641,5 @@ UINT32 sf_cardv_wifi_send(void)
remove("/tmp/wifiData.txt"); remove("/tmp/wifiData.txt");
} }
} }
return 0;
} }

View File

@ -1408,7 +1408,7 @@ UINT8 sf_mcu_reg_set(MCUParam_t attrId, UINT8 val)
{ {
#if HUNTING_CAMERA_4G == ENABLE #if HUNTING_CAMERA_4G == ENABLE
SF_MESSAGE_BUF_S stMessageBuf = {0}; SF_MESSAGE_BUF_S stMessageBuf = {0};
stMessageBuf.arg2 = val; stMessageBuf.arg3 = val;
stMessageBuf.arg2 = attrId; stMessageBuf.arg2 = attrId;
stMessageBuf.arg1 = SF_MCU_CMD_SET_MCU; stMessageBuf.arg1 = SF_MCU_CMD_SET_MCU;
stMessageBuf.cmdId = CMD_MCU; stMessageBuf.cmdId = CMD_MCU;