WIP
This commit is contained in:
@@ -133,12 +133,8 @@ class BridgeModule: NSObject, ObservableObject {
|
||||
if currentExerciseTimeLeft > 0 {
|
||||
currentExerciseTimeLeft -= 1
|
||||
|
||||
if currentExerciseTimeLeft == 0 {
|
||||
playFinished()
|
||||
} else {
|
||||
if currentExerciseTimeLeft <= 3 {
|
||||
playBeep()
|
||||
}
|
||||
if currentExerciseTimeLeft <= 3 {
|
||||
playBeep()
|
||||
}
|
||||
sendCurrentExerciseToWatch()
|
||||
} else {
|
||||
@@ -158,6 +154,7 @@ class BridgeModule: NSObject, ObservableObject {
|
||||
func nextExercise() {
|
||||
if let nextSupersetExercise = currentExerciseInfo.nextExercise {
|
||||
updateCurrent(exercise: nextSupersetExercise)
|
||||
playFinished()
|
||||
} else {
|
||||
completeWorkout()
|
||||
}
|
||||
@@ -196,6 +193,7 @@ class BridgeModule: NSObject, ObservableObject {
|
||||
func completeWorkout() {
|
||||
self.currentExerciseTimer?.invalidate()
|
||||
self.currentExerciseTimer = nil
|
||||
self.isInWorkout = false
|
||||
|
||||
workoutEndDate = Date()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user