From 2ce6fe414db47679569f05e8d36399457839bfdf Mon Sep 17 00:00:00 2001 From: Jesse Johnston Date: Fri, 10 Dec 2021 12:23:36 -0800 Subject: [PATCH] Fixing bug with probe stale flag --- Sources/CombustionBLE/Device.swift | 2 +- Sources/CombustionBLE/Probe.swift | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Sources/CombustionBLE/Device.swift b/Sources/CombustionBLE/Device.swift index 695e24b..100cca7 100644 --- a/Sources/CombustionBLE/Device.swift +++ b/Sources/CombustionBLE/Device.swift @@ -58,7 +58,7 @@ public class Device : ObservableObject { @Published public internal(set) var stale = false /// Time at which device was last updated - private var lastUpdateTime = Date() + internal var lastUpdateTime = Date() public init(id: UUID) { self.id = id.uuidString diff --git a/Sources/CombustionBLE/Probe.swift b/Sources/CombustionBLE/Probe.swift index e33c732..ccd052e 100644 --- a/Sources/CombustionBLE/Probe.swift +++ b/Sources/CombustionBLE/Probe.swift @@ -39,9 +39,6 @@ public class Probe : Device { /// Tracks whether all logs on probe have been synced to the app @Published public private(set) var logsUpToDate = false - /// Time at which - private var lastUpdateTime = Date() - /// Pretty-formatted device name public var name: String { return String(format: "%08X", serialNumber) @@ -54,7 +51,6 @@ public class Probe : Device { /// String representation of device MAC address public var macAddressString: String { - print("macAddress", macAddress) return String(format: "%012llX", macAddress) }