Commit d984b16d7821b578a6fa392caa3d09eb2b6453ae
1 parent
eb37f7a9
feat:set exercise status 5 demo
Showing
1 changed file
with
11 additions
and
0 deletions
HDFwear/Mine/MineViewController.swift
... | ... | @@ -429,6 +429,16 @@ extension MineViewController: UITableViewDataSource, UITableViewDelegate { |
429 | 429 | } |
430 | 430 | } |
431 | 431 | |
432 | + let archiveAction28d = UIAlertAction(title: "newSetExerciseStatus 5", style: .default) { action in | |
433 | + BluetoothManager.shared.newSetExerciseStatus(status: 5, type: 0) { error in | |
434 | + if error != nil { | |
435 | + print("newSetExerciseStatus" + (error?.description ?? "")) | |
436 | + }else { | |
437 | + print("newSetExerciseStatus success") | |
438 | + } | |
439 | + } | |
440 | + } | |
441 | + | |
432 | 442 | let archiveAction29 = UIAlertAction(title: "ota update", style: .default) { action in |
433 | 443 | BluetoothManager.shared.startOtaUpdate() |
434 | 444 | } |
... | ... | @@ -458,6 +468,7 @@ extension MineViewController: UITableViewDataSource, UITableViewDelegate { |
458 | 468 | alert.addAction(archiveAction26) |
459 | 469 | alert.addAction(archiveAction27) |
460 | 470 | alert.addAction(archiveAction28a) |
471 | + alert.addAction(archiveAction28d) | |
461 | 472 | alert.addAction(archiveAction28b) |
462 | 473 | alert.addAction(archiveAction28c) |
463 | 474 | alert.addAction(archiveAction29) | ... | ... |