feat: refresh managed audio after OTA activation

This commit is contained in:
chenjintao
2026-10-12 16:47:58 +08:00
parent 886ea58419
commit 84ce54eeb0
8 changed files with 574 additions and 45 deletions
@@ -19,6 +19,8 @@
#include "ql_ping.h"
#include "ql_nw.h"
#include "ql_atcmd.h"
#include "http_downfile.h"
#include "ota_post_update.h"
//#define NTP_SERVER_DOMAIN "ntp.aliyun.com"
@@ -104,6 +106,7 @@ static void ql_data_call_cb(int profile_idx, int nw_status)
void ql_datacall_demo_thread(void *arvg)
{
int ret = 0;
int refresh_ret = 0;
int file_valid = 0;
char ip4_addr_str[16] = {0};
struct ql_data_call_info info;
@@ -155,7 +158,11 @@ void ql_datacall_demo_thread(void *arvg)
ql_set_lwip_dns(1, "223.5.5.5","114.114.114.144");
ip4_addr = info.v4.addr.ip;
refresh_ret = ota_prepare_post_update_audio_refresh();
if(refresh_ret < 0){
printf("post-update audio refresh preparation failed\r\n");
}
app_file_check_download();
if(g_file_valid==0){