fix(audio): preserve barge-in prompt across OTA
This commit is contained in:
@@ -185,10 +185,12 @@ void app_file_check_download(void)
|
||||
int ret = 0, cnt = 0;
|
||||
|
||||
for(index=1;index<20;index++){
|
||||
|
||||
if(index==4||index==5||index==6||index==7||index==8){
|
||||
continue;
|
||||
}
|
||||
|
||||
/* barge_in_cute.mp3 is shipped in customer_fs and is not hosted by the
|
||||
* legacy prompt download service. */
|
||||
if(index==4||index==5||index==6||index==7||index==8||index==19){
|
||||
continue;
|
||||
}
|
||||
|
||||
if(strlen(mp3_file[index])>0){
|
||||
sprintf(filename_buff, "U:/%s", mp3_file[index]);
|
||||
@@ -204,14 +206,16 @@ down_loop:
|
||||
}
|
||||
}
|
||||
|
||||
void app_file_check_del(void)
|
||||
void app_file_check_del(void)
|
||||
{
|
||||
int index = 1;
|
||||
char filename_buff[64]={0x00};
|
||||
|
||||
for(index=1;index<20;index++){
|
||||
|
||||
if(index==4||index==5||index==6||index==7||index==8){
|
||||
/* Keep the bundled barge-in prompt across app-only FOTA. Unlike the
|
||||
* server-managed prompts, it cannot be restored by the downloader. */
|
||||
if(index==4||index==5||index==6||index==7||index==8||index==19){
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user