Commit cc38043fd20a0f8f1e64cc7056c0c61763d4780e
1 parent
346a2a14
feat:replace setWristSense
Showing
1 changed file
with
1 additions
and
3 deletions
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) { |