Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions LoopCore/LoopSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ extension LoopSettings: RawRepresentable {
let dosingStrategy = DosingStrategy(rawValue: rawDosingStrategy) {
self.dosingStrategy = dosingStrategy
}

self.deviceToken = rawValue["deviceToken"] as? Data
}

public var rawValue: RawValue {
Expand All @@ -314,6 +316,7 @@ extension LoopSettings: RawRepresentable {
raw["maximumBolus"] = maximumBolus
raw["minimumBGGuard"] = suspendThreshold?.rawValue
raw["dosingStrategy"] = dosingStrategy.rawValue
raw["deviceToken"] = deviceToken

return raw
}
Expand Down