Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions CGMBLEKit/Glucose+SensorDisplayable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import LoopKit


extension Glucose: SensorDisplayable {
extension Glucose: GlucoseDisplayable {
public var isStateValid: Bool {
return state == .known(.ok) && status == .ok
}
Expand Down Expand Up @@ -67,7 +67,7 @@ extension Glucose: SensorDisplayable {
}

// TODO Placeholders. This functionality will come with LOOP-1311
public var glucoseValueType: GlucoseValueType? {
public var glucoseRangeCategory: GlucoseRangeCategory? {
return nil
}
}
4 changes: 2 additions & 2 deletions CGMBLEKit/TransmitterManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ public class TransmitterManager: TransmitterDelegate {
return dataIsFresh
}

public var sensorState: SensorDisplayable? {
public var glucoseDisplay: GlucoseDisplayable? {
let transmitterDate = latestReading?.readDate ?? .distantPast
let shareDate = shareManager.latestBackfill?.startDate ?? .distantPast

if transmitterDate >= shareDate {
return latestReading
} else {
return shareManager.sensorState
return shareManager.glucoseDisplay
}
}

Expand Down