Skip to content

Commit 425a6b0

Browse files
authored
Merge pull request #9 from loopandlearn/modify_dexcom_upload_default
modify Dexcom upload default to true
2 parents bdfcfe8 + 1b18c41 commit 425a6b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

G7SensorKit/G7CGMManager/G7CGMManagerState.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public struct G7CGMManagerState: RawRepresentable, Equatable {
1818
public var latestReading: G7GlucoseMessage?
1919
public var latestReadingTimestamp: Date?
2020
public var latestConnect: Date?
21-
public var uploadReadings: Bool = false
21+
public var uploadReadings: Bool = true
2222

2323
init() {
2424
}
@@ -31,7 +31,7 @@ public struct G7CGMManagerState: RawRepresentable, Equatable {
3131
}
3232
self.latestReadingTimestamp = rawValue["latestReadingTimestamp"] as? Date
3333
self.latestConnect = rawValue["latestConnect"] as? Date
34-
self.uploadReadings = rawValue["uploadReadings"] as? Bool ?? false
34+
self.uploadReadings = rawValue["uploadReadings"] as? Bool ?? true
3535
}
3636

3737
public var rawValue: RawValue {

G7SensorKitUI/Views/G7SettingsViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class G7SettingsViewModel: ObservableObject {
2323
@Published private(set) var activatedAt: Date?
2424
@Published private(set) var lastConnect: Date?
2525
@Published private(set) var latestReadingTimestamp: Date?
26-
@Published var uploadReadings: Bool = false {
26+
@Published var uploadReadings: Bool = true {
2727
didSet {
2828
cgmManager.uploadReadings = uploadReadings
2929
}

0 commit comments

Comments
 (0)