Skip to content

Commit

Permalink
Fixing bug with probe stale flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohnstz committed Dec 10, 2021
1 parent a0024b9 commit 2ce6fe4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/CombustionBLE/Device.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions Sources/CombustionBLE/Probe.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
}

Expand Down

0 comments on commit 2ce6fe4

Please sign in to comment.