From f378bc3fff223b9d8da0d15d8169d8c4551c276e Mon Sep 17 00:00:00 2001 From: Roberto Viola Date: Fri, 5 Jan 2024 12:14:54 +0100 Subject: [PATCH] Update WorkoutTracking.swift --- src/ios/WorkoutTracking.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ios/WorkoutTracking.swift b/src/ios/WorkoutTracking.swift index cf55bdabd..f1d32ad98 100755 --- a/src/ios/WorkoutTracking.swift +++ b/src/ios/WorkoutTracking.swift @@ -243,6 +243,8 @@ extension WorkoutTracking: WorkoutTrackingProtocol { if(workoutInProgress == false && power > 0) { startWorkOut() + } else if(workoutInProgress == false && power == 0) { + return; } if(sport == 0) { @@ -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) }