From: liangzhenying <867174124@qq.com>
Date: Fri, 26 Jul 2024 06:49:57 +0000 (+0800)
Subject: 修复切换表盘失败bug
X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=55013e74ece1924a0fe9874484f5bf492459d364;p=mirrors%2FIOTBluetooth-iOS.git
修复切换表盘失败bug
---
diff --git "a/Doc/\343\200\220230\343\200\221\350\223\235\347\211\231\346\211\213\350\241\250\351\200\232\350\256\257\345\215\217\350\256\256 7.25 .docx" "b/Doc/\343\200\220230\343\200\221\350\223\235\347\211\231\346\211\213\350\241\250\351\200\232\350\256\257\345\215\217\350\256\256 7.25 .docx"
new file mode 100644
index 0000000..9684d12
Binary files /dev/null and "b/Doc/\343\200\220230\343\200\221\350\223\235\347\211\231\346\211\213\350\241\250\351\200\232\350\256\257\345\215\217\350\256\256 7.25 .docx" differ
diff --git a/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate b/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate
index 693f765..650f5d2 100644
Binary files a/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate and b/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcodeproj/xcuserdata/apple.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcodeproj/xcuserdata/apple.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
index baf400b..9cee688 100644
--- a/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcodeproj/xcuserdata/apple.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+++ b/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcodeproj/xcuserdata/apple.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -52,5 +52,37 @@
landmarkType = "7">
+
+
+
+
+
+
+
+
diff --git a/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBManager.swift b/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBManager.swift
index a9b76da..91eeac4 100644
--- a/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBManager.swift
+++ b/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBManager.swift
@@ -31,7 +31,7 @@ public class IBManager {
public extension IBManager {
/// SDK çæ¬å·
- static let version: String = "1.0.21"
+ static let version: String = "1.0.22"
/// é»è®¤ä¸º false
static var isDebug: Bool = false {
didSet { Logger.isDebug = isDebug }
diff --git a/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBReceiveManager.swift b/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBReceiveManager.swift
index fac1e0b..4c17cac 100644
--- a/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBReceiveManager.swift
+++ b/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBReceiveManager.swift
@@ -18,6 +18,7 @@ class IBReceiveManager{
static let shared = IBReceiveManager()
var headData = Data()
+ var lastData = Data()
var totalData = Data()
@@ -42,13 +43,14 @@ class IBReceiveManager{
// //aiè¯é³
if pkgIndex == 1{
headData = data.prefix(17)
+ lastData = data.suffix(1)
}
IBBluetooth.shared.deinitTimer()
IBBluetooth.shared.startTimer()
totalData = totalData + data.suffix(from: 17).prefix(pkgLen)
if pkgTotal == pkgIndex{
Logger.log("total = \(dataTotal),receive = \(totalData.count)")
- let fullData = headData + totalData
+ let fullData = headData + totalData + lastData
didGetFullData(characteristic: characteristic, data: fullData)
}
// }
diff --git a/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBluetooth.swift b/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBluetooth.swift
index d626767..02f9676 100644
--- a/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBluetooth.swift
+++ b/IOTBluetooth/IOTBluetooth/IOTBluetooth/IBluetooth.swift
@@ -242,7 +242,7 @@ extension IBBluetooth: CBCentralManagerDelegate {
sender.remove()
}
- self.fileSender?.lastData?.fileWriteHander?(.response.code(.failure).message("ææºæªè¿ä¸èç设å¤"))
+ self.fileSender?.lastData?.fileWriteHander?(.response.code(.failure).message("èçè®¾å¤æå¼è¿æ¥"))
IBManager.completeHandler?(false)
IBManager.completeHandler = nil