Commit cc38043fd20a0f8f1e64cc7056c0c61763d4780e

Authored by daifengyi
1 parent 346a2a14

feat:replace setWristSense

HDFwear/Tools/BluetoothManager.swift
@@ -374,9 +374,7 @@ class BluetoothManager: NSObject { @@ -374,9 +374,7 @@ class BluetoothManager: NSObject {
374 } 374 }
375 375
376 func setWristSense(_ bool: Bool, completion: ((_ error: Int?) -> ())? = nil) { 376 func setWristSense(_ bool: Bool, completion: ((_ error: Int?) -> ())? = nil) {
377 - let data = BleMessage.shared.getWristSenseCmd(bool)  
378 - self.setCmdClosure = completion  
379 - sendData(data) 377 + newSetWristSense(bool: bool, completion: completion)
380 } 378 }
381 379
382 func setAutoMeasure(_ bool: Bool, completion: ((_ error: Int?) -> ())? = nil) { 380 func setAutoMeasure(_ bool: Bool, completion: ((_ error: Int?) -> ())? = nil) {