From fc9967b37c19c8b5b72837b24c1f35678163ab64 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期一, 30 六月 2025 14:49:07 +0800
Subject: [PATCH] OTAv3   加入传输完成的语音

---
 keil/include/src/SPIV1.07.c |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/keil/include/src/SPIV1.07.c b/keil/include/src/SPIV1.07.c
index 082c445..1f93d2a 100644
--- a/keil/include/src/SPIV1.07.c
+++ b/keil/include/src/SPIV1.07.c
@@ -1,7 +1,19 @@
 #include "stdbool.h"
 #include "mk_gpio.h"
 #include "HIDO_TypeDef.h"
-
+#include <global_param.h>
+#include <serial_at_cmd_app.h>
+#include "string.h"
+#include "HIDO_TypeDef.h"
+#include "HIDO_Timer.h"
+#include "OTA.h"
+#include "HIDO_Debug.h"
+#include "HIDO_Timer.h"
+#include "HIDO_Util.h"
+#include "HTTPClient.h"
+#include "Internet.h"
+#include "mk_flash.h"
+#include "mk_trace.h"
 typedef unsigned short UC16;
 typedef unsigned char UC8;
 typedef unsigned long int UC32;
@@ -261,18 +273,21 @@
         {
             HAL_Delay(1);
             DATA_CHANGE_PACK_SEND(DATA_SONG, 512);
+            LOG_INFO(TRACE_MODULE_APP,"存储语音数据成功 %d\r\n", i);
         }
 
         else
         {
-//            printf("voice update fail");
+            LOG_INFO(TRACE_MODULE_APP,"存储语音数据失败 %d\r\n", i);
             return  false;
         }
     }
-
+//    LOG_INFO(TRACE_MODULE_APP,"ssssssssssssss %d\r\n", i);
     DATA_CHANGE_End();
     HAL_Delay(100);
-//    printf("voice update success");
+    delay_ms(3000);
+    WT588E_PLAY(23);
+    delay_ms(2000);
     return  true;
 }
 

--
Gitblit v1.9.3