Skip to content

Commit 8b75d17

Browse files
committed
Fix issue updating activation date
1 parent 01465fd commit 8b75d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

G7SensorKit/G7CGMManager/G7Sensor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public final class G7Sensor: G7BluetoothManagerDelegate {
123123
}
124124

125125
private func handleGlucoseMessage(message: G7GlucoseMessage, peripheralManager: G7PeripheralManager) {
126-
activationDate = Date().addingTimeInterval(-TimeInterval(message.glucoseTimestamp))
126+
activationDate = Date().addingTimeInterval(-TimeInterval(message.messageTimestamp))
127127
peripheralManager.perform { (peripheral) in
128128
self.log.debug("Listening for backfill responses")
129129
// Subscribe to backfill updates

0 commit comments

Comments
 (0)