Skip to content

Commit

Permalink
Update WorkoutTracking.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Jan 5, 2024
1 parent 6ea8c00 commit f378bc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ios/WorkoutTracking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ extension WorkoutTracking: WorkoutTrackingProtocol {

if(workoutInProgress == false && power > 0) {
startWorkOut()
} else if(workoutInProgress == false && power == 0) {
return;
}

if(sport == 0) {
Expand Down Expand Up @@ -280,6 +282,9 @@ extension WorkoutTracking: WorkoutTrackingProtocol {
start: WorkoutTracking.lastDateMetric,
end: Date())
workoutBuilder.add([cadencePerIntervalSample]) {(success, error) in
if success {
print("OK")
}
if let error = error {
print(error)
}
Expand Down

0 comments on commit f378bc3

Please sign in to comment.