Skip to content

Commit

Permalink
Merge branch 'feature/bluetooth' of https://github.com/StanfordBDHG/E…
Browse files Browse the repository at this point in the history
…NGAGE-HF into feature/bluetooth
  • Loading branch information
nriedman committed May 21, 2024
2 parents c9d0fce + 97637f3 commit 1ead774
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ENGAGEHF/Bluetooth/MeasurementManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ class MeasurementManager: Module, EnvironmentAccessible {
// Called by WeightScaleDevice on change of WeightMeasurement Characteristic
func loadMeasurement(_ measurement: WeightMeasurement) {
// Convert to HKQuantitySample after downloading from Firestore
let convertedMeasurement = convertToHKSample(measurement)

// Save the sample to the Measurement Manager
self.newMeasurement = convertedMeasurement

self.newMeasurement = convertToHKSample(measurement)
logger.info("Measurement loaded into MeasurementManager: \(measurement.weight)")
}

Expand Down

0 comments on commit 1ead774

Please sign in to comment.