Skip to content

Commit

Permalink
Merge pull request #2 from combustion-inc/bugfix/probe_stale
Browse files Browse the repository at this point in the history
Fixing bug with probe stale flag
  • Loading branch information
jmaha authored Dec 10, 2021
2 parents a0024b9 + 2ce6fe4 commit d87958c
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 d87958c

Please sign in to comment.